UNPKG

debuggo

Version:

General purpose debug library based on visionmedia/debug

21 lines (20 loc) 694 B
import { IDebugger } from 'debug'; export { disable, enable, IDebugger } from 'debug'; export interface Logger { log: IDebugger; info: IDebugger; warn: IDebugger; error: IDebugger; debug: IDebugger; trace: IDebugger; } export interface LoggerOptions { ns: string; context?: string; cache?: boolean; } export declare function getLogger(ns: string, context?: string, cache?: boolean): any; export declare function getLogger(opts: LoggerOptions): Logger; export declare function namespaces(): string[]; export declare function cb(ns?: string): (err: any, data?: any) => void; export declare function promise(p: PromiseLike<any>, ns?: string): PromiseLike<any>;