UNPKG

if-logger

Version:

`if-logger` can set whether to log or not dynamically

10 lines (9 loc) 663 B
export declare function trim(obj: any): {}; export declare function isNode(): boolean; export declare function getTagString(str: any): string; export declare function getHeaderString(strList: Array<any>): string; export declare function defaultFormat(level: string, tags: any[] | undefined, message: string): string; export declare function simpleFormat(level: any, tags: any, message: any): string; export declare function getColorMessage(level: string, message: string): string[]; export declare function useFormat(level: any, tags: any, format: any): (...args: any[]) => string[]; export declare function getNodeColorMessage(level: string, message: any): any;