UNPKG

@mdfriday/foundry

Version:

The core engine of MDFriday. Convert Markdown and shortcodes into fully themed static sites – Hugo-style, powered by TypeScript.

25 lines 1.04 kB
import { LogLevel, LoggerConfig, Logger as ILogger } from './types'; export declare class Logger implements ILogger { private config; private fields; constructor(config: LoggerConfig); private shouldLog; private getCaller; private formatMessage; private writeLog; private formatPlainText; debug(message: string, ...args: any[]): void; info(message: string, ...args: any[]): void; warn(message: string, ...args: any[]): void; error(message: string, ...args: any[]): void; fatal(message: string, ...args: any[]): void; debugf(template: string, ...args: any[]): void; infof(template: string, ...args: any[]): void; warnf(template: string, ...args: any[]): void; errorf(template: string, ...args: any[]): void; fatalf(template: string, ...args: any[]): void; with(fields: Record<string, any>): Logger; } export declare function New(level?: LogLevel): Logger; export declare function NewWithConfig(config: LoggerConfig): Logger; //# sourceMappingURL=logger.d.ts.map