@httpc/kit
Version:
httpc toolbox for building function-based API with minimal code and end-to-end type safety
15 lines (14 loc) • 660 B
TypeScript
import { LogLevel, ILogger } from "../types";
export declare class ConsoleLogger implements ILogger {
protected label: string;
protected level: string;
constructor(label: string, level?: string);
error(message: string | Error, ...args: any[]): void;
info(message: string, ...args: any[]): void;
warn(message: string, ...args: any[]): void;
debug(message: string, ...args: any[]): void;
verbose(message: string, ...args: any[]): void;
log(level: string, message: string, ...args: any[]): void;
isLevelEnabled(level: LogLevel): boolean;
protected formatMessage(level: string, message: string): string;
}