How to use the loglevel.getLoggers function in loglevel

To help you get started, we’ve selected a few loglevel examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github muuvmuuv / vscode-sundial / src / logger.ts View on Github external
function setGlobalLevel(level: any) {
  Object.values(logger.getLoggers()).forEach((lg) => {
    lg.setLevel(level)
  })
}
github CityOfZion / neon-js / packages / neon-core / src / logging.ts View on Github external
export function setAll(lvl: loglevel.LogLevelDesc): void {
  Object.keys(loglevel.getLoggers()).map(key => {
    const lg = loglevel.getLogger(key);
    lg.setLevel(lvl as loglevel.LogLevelDesc);
  });
}
github CityOfZion / neon-js / packages / neon-core / src / logging.js View on Github external
loglevel.setAll = (lvl) => {
  Object.keys(loglevel.getLoggers()).map(key => {
    const lg = loglevel.getLogger(key)
    lg.setLevel(lvl)
  })
}