MCPcopy
hub / github.com/webpack/webpack / logGroup

Function logGroup

hot/log.js:24–30  ·  view source on GitHub ↗

* @param {(msg?: string) => void} logFn log function * @returns {(level: LogLevel, msg?: string) => void} function that logs when log level is sufficient

(logFn)

Source from the content-addressed store, hash-verified

22 * @returns {(level: LogLevel, msg?: string) => void} function that logs when log level is sufficient
23 */
24function logGroup(logFn) {
25 return function (level, msg) {
26 if (shouldLog(level)) {
27 logFn(msg);
28 }
29 };
30}
31
32/**
33 * @param {LogLevel} level log level

Callers 1

log.jsFile · 0.85

Calls 1

shouldLogFunction · 0.85

Tested by

no test coverage detected