Skip to content

Commit

Permalink
docs(API): add a description to level option (#1488)
Browse files Browse the repository at this point in the history
  • Loading branch information
KoltesDigital committed Jul 8, 2022
1 parent 74893ae commit ddc762c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/api.md
Expand Up @@ -57,6 +57,8 @@ The name of the logger. When set adds a `name` field to every JSON line logged.

Default: `'info'`

The minimum level to log: Pino will not log messages with a lower level. Setting this option reduces the load, as typically, debug and trace logs are only valid for development, and not needed in production.

One of `'fatal'`, `'error'`, `'warn'`, `'info`', `'debug'`, `'trace'` or `'silent'`.

Additional levels can be added to the instance via the `customLevels` option.
Expand Down

0 comments on commit ddc762c

Please sign in to comment.