18 lines
685 B
TypeScript
18 lines
685 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, scopeId?: string): ScopedLogger;
|
|
static createScopeId(): string;
|
|
}
|