voice-agent
Version:
A Vue.js voice agent plugin for real-time voice communication via WebSocket
41 lines • 1.28 kB
TypeScript
/**
* 公共日志工具
*/
type LogLevel = 'error' | 'warning' | 'success' | 'info' | 'debug';
export declare class Logger {
private static instance;
constructor();
/**
* 通用日志输出方法
*/
log(content: string, type?: LogLevel, module?: string): void;
/**
* 错误日志
*/
error(content: string, module?: string): void;
/**
* 警告日志
*/
warning(content: string, module?: string): void;
/**
* 成功日志
*/
success(content: string, module?: string): void;
/**
* 信息日志
*/
info(content: string, module?: string): void;
/**
* 调试日志
*/
debug(content: string, module?: string): void;
}
declare const logger: Logger;
export default logger;
export declare const log: (content: string, type?: LogLevel, module?: string) => void;
export declare const logError: (content: string, module?: string) => void;
export declare const logWarning: (content: string, module?: string) => void;
export declare const logSuccess: (content: string, module?: string) => void;
export declare const logInfo: (content: string, module?: string) => void;
export declare const logDebug: (content: string, module?: string) => void;
//# sourceMappingURL=logger.d.ts.map