@dugongjs/nestjs
Version:
15 lines (14 loc) • 566 B
TypeScript
import type { ILogger } from "@dugongjs/core";
/**
* Adapts the NestJS Logger to the ILogger interface used by the core package.
* The first argument is treated as structured context and rendered as a single-line message.
*/
export declare class NestJSLoggerAdapter implements ILogger {
private readonly logger;
constructor(context: string);
log(context: any, ...args: any[]): void;
error(context: any, ...args: any[]): void;
warn(context: any, ...args: any[]): void;
verbose(context: any, ...args: any[]): void;
private logMessage;
}