17 lines
631 B
TypeScript
17 lines
631 B
TypeScript
import { Logger } from "@nestjs/common";
|
|
export declare class ScopedLogger extends Logger {
|
|
private logger;
|
|
private scope;
|
|
private scopeId;
|
|
constructor(logger: Logger, scope: string[], scopeId?: string);
|
|
private scopedLog;
|
|
debug: (message: string) => void;
|
|
log: (message: string) => void;
|
|
warn: (message: string) => void;
|
|
verbose: (message: string) => void;
|
|
error: (message: string) => void;
|
|
fatal: (message: string) => void;
|
|
static fromSuper(baseLogger: Logger, logger: ScopedLogger, scope: string): ScopedLogger;
|
|
static fromRoot(logger: Logger, scope: string): ScopedLogger;
|
|
}
|