UNPKG

@overture-stack/lyric

Version:
15 lines (14 loc) 455 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 * @param config logger configuration * @returns functions to log messages based on each log level */ export declare const getLogger: (config: LoggerConfig) => Logger;