UNPKG

@sentzunhat/zacatl

Version:

A modular, high-performance TypeScript microservice framework for Node.js, featuring layered architecture, dependency injection, and robust validation for building scalable APIs and distributed systems.

22 lines 933 B
export type LoggerInput = { data?: unknown; details?: unknown; } | undefined; export interface Logger { log: (message: string, input?: LoggerInput) => void; info: (message: string, input?: LoggerInput) => void; trace: (message: string, input?: LoggerInput) => void; warn: (message: string, input?: LoggerInput) => void; error: (message: string, input?: LoggerInput) => void; fatal: (message: string, input?: LoggerInput) => void; } export interface LoggerPort { log: (message: string, input?: LoggerInput) => void; info: (message: string, input?: LoggerInput) => void; trace: (message: string, input?: LoggerInput) => void; warn: (message: string, input?: LoggerInput) => void; error: (message: string, input?: LoggerInput) => void; fatal: (message: string, input?: LoggerInput) => void; } export type LoggerAdapterType = 'pino' | 'console'; //# sourceMappingURL=types.d.ts.map