unnbound-logger-sdk
Version:
A structured logging library with TypeScript support using Pino. Provides consistent, well-typed logging with automatic logId, workflowId, traceId, and deploymentId tracking across operational contexts.
18 lines (17 loc) • 587 B
TypeScript
import pino from 'pino';
export interface ILogger {
trace(object: {}, message: string): void;
trace(message: string): void;
debug(object: {}, message: string): void;
debug(message: string): void;
info(object: {}, message: string): void;
info(message: string): void;
warn(object: {}, message: string): void;
warn(message: string): void;
error<O extends {
err: unknown;
}>(object: O, message: string): void;
}
export interface UnnboundLogger extends ILogger, Omit<pino.Logger, keyof ILogger> {
}
export declare const logger: UnnboundLogger;