Skip to content

Commit

Permalink
docs: add the missing import logger statement (#9210)
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-Cena authored Aug 7, 2023
1 parent 3c1fe15 commit 3e9648e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
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

0 comments on commit 3e9648e

Please sign in to comment.