MCPcopy
hub / github.com/bilibili/flv.js / e

Method e

src/utils/logger.js:23–44  ·  view source on GitHub ↗
(tag, msg)

Source from the content-addressed store, hash-verified

21class Log {
22
23 static e(tag, msg) {
24 if (!tag || Log.FORCE_GLOBAL_TAG)
25 tag = Log.GLOBAL_TAG;
26
27 let str = `[${tag}] > ${msg}`;
28
29 if (Log.ENABLE_CALLBACK) {
30 Log.emitter.emit('log', 'error', str);
31 }
32
33 if (!Log.ENABLE_ERROR) {
34 return;
35 }
36
37 if (console.error) {
38 console.error(str);
39 } else if (console.warn) {
40 console.warn(str);
41 } else {
42 console.log(str);
43 }
44 }
45
46 static i(tag, msg) {
47 if (!tag || Log.FORCE_GLOBAL_TAG)

Callers 13

_onInitChunkArrivalMethod · 0.80
_onIOExceptionMethod · 0.80
_onDemuxExceptionMethod · 0.80
constructorMethod · 0.80
detachMediaElementMethod · 0.80
appendInitSegmentMethod · 0.80
seekMethod · 0.80
_doAppendSegmentsMethod · 0.80
_onSourceBufferErrorMethod · 0.80
_onLoaderErrorMethod · 0.80
_parseAudioDataMethod · 0.80
parseScriptDataMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected