UNPKG

logctx

Version:

A Pino-based logger with context-aware logging using async_hooks

7 lines (6 loc) 275 B
/** * A decorator that adds a logger to the class. * The logger can be accessed via the `log` property. * @returns A class decorator that adds a logger to the class. */ export declare function WithLogger(): <T extends new (...args: any[]) => any>(OriginalClass: T) => T;