name of a logger. Empty string changes the root logger.
Optional
level: LogLevelthe new level of the logger.
import {setLogLevel} from "apprt-core/Logger";
// Changes the root level to DEBUG
// All loggers without special configuration will now output messages.
setLogLevel("", "DEBUG");
// Changes the log level of the bundle 'apprt-core' to DEBUG.
// All loggers in this bundle will now output messages.
setLogLevel("apprt-core", "DEBUG");
// Changes the log level of the bundles file 'apprt-core/Promise' to DEBUG.
// Only the special logger will now output messages.
setLogLevel("apprt-core/Promise", "DEBUG");
// clears the config for the logger and inherits from the parent.
// this is not allowed for the root logger
setLogLevel("apprt-core/Promise");
Changes the log level of a logger.