docutils-ts
Version:
Port of the Python Docutils library to TypeScript
16 lines (15 loc) • 591 B
TypeScript
import { LoggerType } from "./types.js";
export declare class Logger implements LoggerType {
private options;
constructor(options?: any);
child(options: any): Logger;
debug(message: string, ...meta: any[]): this;
silly(message: string, ...meta: any[]): this;
info(message: string, ...meta: any[]): this;
warn(message: string, ...meta: any[]): this;
error(message: string, ...meta: any[]): this;
private shouldLog;
}
export declare function createLogger(options?: any): Logger;
export declare const logger: Logger;
export declare const child: () => never;