cat-bookmarker/assets/node_modules/webpack-dev-server/client/utils/log.js

20 lines
548 B
JavaScript
Raw Permalink Normal View History

2024-03-10 18:52:04 +00:00
import logger from "../modules/logger/index.js";
var name = "webpack-dev-server"; // default level is set on the client side, so it does not need
// to be set by the CLI or API
var defaultLevel = "info"; // options new options, merge with old options
/**
* @param {false | true | "none" | "error" | "warn" | "info" | "log" | "verbose"} level
* @returns {void}
*/
function setLogLevel(level) {
logger.configureDefaultLogger({
level: level
});
}
setLogLevel(defaultLevel);
var log = logger.getLogger(name);
export { log, setLogLevel };