@russ-b/nestjs-common-tools
Version:
NestJS utility tools
14 lines (13 loc) • 477 B
TypeScript
import { type Params } from 'nestjs-pino';
export type PinoLogLevel = 'trace' | 'debug' | 'info' | 'warn' | 'error' | 'fatal' | 'silent';
export interface PinoLoggerConfig {
appName: string;
level?: PinoLogLevel;
pretty?: boolean;
logHttpRequests?: boolean;
version?: string;
environment?: string;
redactPaths?: string[];
base?: Record<string, unknown>;
}
export declare function createPinoLoggerModuleOptions(config: PinoLoggerConfig): Params;