MCPcopy
hub / github.com/orion-lib/OrionTV / info

Method info

utils/Logger.ts:78–89  ·  view source on GitHub ↗
(optionsOrMessage: LoggerOptions | any, message?: any, ...args: any[])

Source from the content-addressed store, hash-verified

76 info(message: any, ...args: any[]): void;
77 info(options: LoggerOptions, message: any, ...args: any[]): void;
78 info(optionsOrMessage: LoggerOptions | any, message?: any, ...args: any[]): void {
79 if (!__DEV__) return;
80
81 if (this.minLevel > LogLevel.INFO) return;
82
83 if (typeof optionsOrMessage === 'object' && optionsOrMessage.tag !== undefined) {
84 const options = optionsOrMessage as LoggerOptions;
85 this.formatMessage('INFO', options.tag, message, ...args);
86 } else {
87 this.formatMessage('INFO', undefined, optionsOrMessage, message, ...args);
88 }
89 }
90
91 /**
92 * 警告级别日志

Callers 15

handleLongPressFunction · 0.80
handleLongPressFunction · 0.80
handleLongPressFunction · 0.80
handleLongPressFunction · 0.80
formatMessageMethod · 0.80
detailStore.tsFile · 0.80
processAndSetResultsFunction · 0.80
playerStore.tsFile · 0.80
fetchAndParseM3uFunction · 0.80
getAllMethod · 0.80
getMethod · 0.80

Calls 1

formatMessageMethod · 0.95

Tested by

no test coverage detected