Skip to content

Commit

Permalink
add disabled to pino.LoggerOptions (#1629)
Browse files Browse the repository at this point in the history
  • Loading branch information
JonParton committed Apr 10, 2023
1 parent 062e30a commit b9ac6e3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pino.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,13 @@ declare namespace pino {
*/
send: (level: Level, logEvent: LogEvent) => void;
};
/**
* The disabled option will disable logging in browser if set to true, by default it is set to false.
*
* @example
* const pino = require('pino')({browser: {disabled: true}})
*/
disabled?: boolean;
};
/**
* key-value object added as child logger to each log line. If set to null the base child logger is not added
Expand Down

0 comments on commit b9ac6e3

Please sign in to comment.