UNPKG

@overture-stack/lyric

Version:
17 lines (16 loc) 585 B
import { LoggerConfig } from './config.js'; export type loggerFunction = (...messages: unknown[]) => void; export type Logger = { debug: loggerFunction; warn: loggerFunction; info: loggerFunction; error: loggerFunction; }; /** * Get a Logger instance for log messages. * * Supports two transports: * - Console: human-readable `timestamp [level]: message key=value ...` format, always active. * - JSON file (`logs/app.json`): full structured JSON for log aggregators; enabled via `config.json`. */ export declare const getLogger: (config: LoggerConfig) => Logger;