How to use the pino.final 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 benawad / codeponder / packages / server / src / utils / shutdown.ts View on Github external
config.db.close().then(() => {
      config.logger.warn("Database disconnected.");
      const finalLogger = pino.final(config.logger);
      finalLogger.warn("Bye.");
      process.exit(1);
    });
  });
github neo-one-suite / neo-one / packages / neo-one-logger / src / loggers.ts View on Github external
export const getFinalLogger = (logger: pino.Logger) => pino.final(logger);