MCPcopy
hub / github.com/webpack/webpack / logSome

Method logSome

test/helpers/LogTestPlugin.js:21–39  ·  view source on GitHub ↗
(logger)

Source from the content-addressed store, hash-verified

19 * @param {ReturnType<Compilation["getLogger"]>} logger logger
20 */
21 const logSome = (logger) => {
22 logger.group("Group");
23 if (!this.noTraced) {
24 logger.error("Error");
25 logger.warn("Warning");
26 }
27 logger.info("Info");
28 logger.log("Log");
29 logger.debug("Debug");
30 logger.groupCollapsed("Collapsed group");
31 logger.log("Log inside collapsed group");
32 logger.group("Inner group");
33 logger.log("Inner inner message");
34 logger.groupEnd();
35 logger.groupEnd();
36 logger.log("Log");
37 logger.groupEnd();
38 logger.log("End");
39 };
40 logSome(compiler.getInfrastructureLogger("LogTestPlugin"));
41 compiler.hooks.compilation.tap("LogTestPlugin", (compilation) => {
42 const logger = compilation.getLogger("LogTestPlugin");

Callers

nothing calls this directly

Calls 8

groupMethod · 0.80
warnMethod · 0.80
infoMethod · 0.80
logMethod · 0.80
debugMethod · 0.80
groupCollapsedMethod · 0.80
groupEndMethod · 0.80
errorMethod · 0.45

Tested by

no test coverage detected