import { Stream } from "node:stream"; import { LogLevel, LogLevelString, LogLevelString as BunyanLogLevel, Serializers as BunyanSerializers, Stream as BunyanStream } from "bunyan"; //#region lib/logger/types.d.ts export interface LogError { level: LogLevel; meta: any; msg?: string; } export interface Logger { trace(msg: string): void; trace(meta: Record, msg?: string): void; debug(msg: string): void; debug(meta: Record, msg?: string): void; info(msg: string): void; info(meta: Record, msg?: string): void; warn(msg: string): void; warn(meta: Record, msg?: string): void; error(msg: string): void; error(meta: Record, msg?: string): void; fatal(msg: string): void; fatal(meta: Record, msg?: string): void; once: Logger & { reset: () => void; }; } export interface BunyanRecord extends Record { level: number; msg: string; module?: string; } export type BunyanNodeStream = (NodeJS.WritableStream | Stream) & { writable?: boolean; write: (chunk: BunyanRecord, enc: BufferEncoding, cb: (err?: Error | null) => void) => void; }; export type BunyanLogger = ReturnType; export interface LogLevelRemap { matchMessage: string; newLogLevel: LogLevelString; } //#endregion export type { BunyanLogLevel, BunyanSerializers, BunyanStream }; //# sourceMappingURL=types.d.ts.map