Setu-TS
    Preparing search index...

    Class PinoLogger

    Structured logger backed by Pino.

    Because the pino import is async, use PinoLogger.create (async factory) rather than new. An injected pinoFactory option allows synchronous construction for tests.

    const logger = await PinoLogger.create({ level: 'debug', redact: ['password'] });
    logger.info('server started', { port: 3000 });
    const logger = await PinoLogger.create({
    level: 'info',
    pinoFactory: (opts) => fakePino,
    });

    0.1.0

    Implements

    Index
    level: LogLevel

    The minimum level this logger emits.