MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / log

Function log

pmcaptcha/pmcaptcha.ts:38–41  ·  view source on GitHub ↗
(level: LogLevel, message: string, data?: any)

Source from the content-addressed store, hash-verified

36
37enum LogLevel { INFO = 1, WARN = 2, ERROR = 3 }
38
39function log(level: LogLevel, message: string, data?: any) {
40 const prefix = `[PMCaptcha] [${new Date().toISOString()}] [${LogLevel[level]}]`;
41 data ? console.log(`${prefix} ${message}`, data) : console.log(`${prefix} ${message}`);
42}
43
44// ─── 枚举 ─────────────────────────────────────────────────────────────────────

Callers 15

pmcaptcha.tsFile · 0.85
initDbFunction · 0.85
setFunction · 0.85
archiveChatFunction · 0.85
muteChatFunction · 0.85
blockUserFunction · 0.85
deleteHistoryFunction · 0.85
reportSpamFunction · 0.85
unmuteChatFunction · 0.85
unarchiveChatFunction · 0.85
runFailActionsFunction · 0.85
tryGetCanvasFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected