MCPcopy
hub / github.com/ampproject/amphtml / callLogConstructor

Function callLogConstructor

src/utils/log.js:548–553  ·  view source on GitHub ↗

* Calls the log constructor with a given level function and suffix. * @param {function(number, boolean):!LogLevel_Enum} levelFunc * @param {string=} opt_suffix * @return {!Log}

(levelFunc, opt_suffix)

Source from the content-addressed store, hash-verified

546 * @return {!Log}
547 */
548function callLogConstructor(levelFunc, opt_suffix) {
549 if (!logConstructor) {
550 throw new Error('failed to call initLogConstructor');
551 }
552 return new logConstructor(self, levelFunc, opt_suffix);
553}
554
555/**
556 * Publisher level log.

Callers 2

getUserLoggerFunction · 0.85
devFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected