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

Function getUserLogger

src/utils/log.js:587–593  ·  view source on GitHub ↗

* Getter for user logger * @param {string=} suffix * @return {!Log}

(suffix)

Source from the content-addressed store, hash-verified

585 * @return {!Log}
586 */
587function getUserLogger(suffix) {
588 return callLogConstructor(
589 (logNum, development) =>
590 development || logNum >= 1 ? LogLevel_Enum.FINE : LogLevel_Enum.WARN,
591 suffix
592 );
593}
594
595/**
596 * AMP development log. Calls to `devLog().assert` and `dev.fine` are stripped

Callers 1

userFunction · 0.85

Calls 1

callLogConstructorFunction · 0.85

Tested by

no test coverage detected