UNPKG

@flashcoffee/fclogger

Version:
33 lines (32 loc) 919 B
import { Logger as WinstonLogger } from 'winston'; export declare const ddlogger: WinstonLogger; export declare class DDLogger { private readonly log?; constructor(log?: WinstonLogger); info(data: { eventName: string; module: string; data: Record<string, any>; serviceVersion: string; customerId?: string; appVersion?: string; }): void; warn(data: { eventName: string; module: string; data: Record<string, any>; serviceVersion: string; warnObject: string | Record<string, any>; customerId?: string; appVersion?: string; }): void; error(data: { eventName: string; module: string; data: Record<string, any>; serviceVersion: string; errorObject: string | Record<string, any>; customerId?: string; appVersion?: string; }): void; }