@joker.front/cli
Version:
The Next-Generation Front-End Toolchain: Swift, Efficient, and Adaptive.
27 lines (26 loc) • 621 B
TypeScript
export declare namespace logger {
/**
* 日志等级,默认为警告和错误
*/
type leve = "silent" | "error" | "warn" | "info" | "debug";
let logLevel: leve;
function debug(tag: string, content: any): void;
/**
* 信息
* @param tag
* @param content
*/
function info(tag: string, content: any): void;
/**
* 警告
* @param tag
* @param content
*/
function warn(tag: string, content: any): any;
/**
* 错误
* @param tag
* @param content
*/
function error(tag: string, content: any, err?: Error): string;
}