UNPKG

@lskjs/log

Version:

Логгер совмещающий лучшие черты morgan, winston, bunyan, logrus. debug. Базируется на debug-level.

15 lines (14 loc) 812 B
export declare const prettyPath: (url: string, defaultUrlPad?: number) => any; export declare const prettyStatus: (status: number) => string; export declare const prettyReqId: (reqId: number) => any; export declare const prettyMethod: (method: string) => string; export declare const prettyTime: (ms: number) => string; export declare const prettySize: (bytes: number, seperator?: string) => string; export declare const prettyNs: (names: string[]) => string; export declare function prettyMarker(key: string): string; export declare const prettyLevel: (level?: string) => string; export declare const prettyContent: (...args: any[]) => any[]; export declare const isUrlLog: (mainArg: any) => any; export declare const prettyUrl: (mainArg: any, { level }?: { level?: string | null | undefined; }) => string;