UNPKG

postal-code-scraper

Version:

A tool for scraping country data, including regions and their postal codes

34 lines (33 loc) 1.26 kB
export type LogMethod = "error" | "warn" | "info" | "debug"; export type LogLevel = LogMethod | "silent"; export interface LoggerInterface { debug(message: string, ...args: any[]): void; info(message: string, ...args: any[]): void; warn(message: string, ...args: any[]): void; error(message: string, ...args: any[]): void; } export declare class Logger implements LoggerInterface { private static logLevel; private static useColors; private static prefix; private static instance; static configure(config: { level?: LogLevel; colors?: boolean; prefix?: string; logger?: LoggerInterface; }): void; static getInstance(): LoggerInterface; static debug(message: string, ...args: any[]): void; static info(message: string, ...args: any[]): void; static warn(message: string, ...args: any[]): void; static error(message: string, ...args: any[]): void; private static shouldLog; private static log; private static formatMessage; private static getLevelColor; debug(message: string, ...args: any[]): void; info(message: string, ...args: any[]): void; warn(message: string, ...args: any[]): void; error(message: string, ...args: any[]): void; }