Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/docusaurus-logger/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ In addition, `warn` and `error` will color the **entire** message for better att
The template literal tag evaluates the template and expressions embedded. `interpolate` returns a new string, while other logging functions prints it. Below is a typical usage:

```js
import logger from '@docusaurus/logger';

logger.info`Hello name=${name}! You have number=${money} dollars. Here are the ${
items.length > 1 ? 'items' : 'item'
} on the shelf: ${items}
Expand Down
2 changes: 2 additions & 0 deletions website/docs/api/misc/logger/logger.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ In addition, `warn` and `error` will color the **entire** message for better att
The template literal tag evaluates the template and expressions embedded. `interpolate` returns a new string, while other logging functions prints it. Below is a typical usage:

```js
import logger from '@docusaurus/logger';

logger.info`Hello name=${name}! You have number=${money} dollars. Here are the ${
items.length > 1 ? 'items' : 'item'
} on the shelf: ${items}
Expand Down