MCPcopy
hub / github.com/apache/echarts / outputLog

Function outputLog

src/util/log.ts:30–41  ·  view source on GitHub ↗
(type: 'log' | 'warn' | 'error', str: string, onlyOnce?: boolean)

Source from the content-addressed store, hash-verified

28 && console.warn && console.log;
29
30function outputLog(type: 'log' | 'warn' | 'error', str: string, onlyOnce?: boolean) {
31 if (hasConsole) {
32 if (onlyOnce) {
33 if (storedLogs[str]) {
34 return;
35 }
36 storedLogs[str] = true;
37 }
38 // eslint-disable-next-line
39 console[type](ECHARTS_PREFIX + str);
40 }
41}
42
43export function log(str: string, onlyOnce?: boolean) {
44 outputLog('log', str, onlyOnce);

Callers 4

logFunction · 0.85
warnFunction · 0.85
errorFunction · 0.85
deprecateLogFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…