How to use the pino.extreme function in pino

To help you get started, we’ve selected a few pino examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github neo-one-suite / neo-one / packages / neo-one-logger / src / loggers.ts View on Github external
const createLogger = (service: string, options: pino.LoggerOptions = {}) =>
  options.browser !== undefined
    ? pino({ ...options, base: { service }, prettyPrint: getPretty() })
    : pino(
        { ...options, base: { service }, prettyPrint: getPretty() },
        process.env.NODE_ENV === 'production' ? pino.extreme(1) : pino.destination(1),
      );