MCPcopy
hub / github.com/winstonjs/winston / getLevelValue

Function getLevelValue

lib/winston/logger.js:679–685  ·  view source on GitHub ↗
(levels, level)

Source from the content-addressed store, hash-verified

677}
678
679function getLevelValue(levels, level) {
680 const value = levels[level];
681 if (!value && value !== 0) {
682 return null;
683 }
684 return value;
685}
686
687/**
688 * Represents the current readableState pipe targets for this Logger instance.

Callers 2

getHighestLogLevelMethod · 0.85
isLevelEnabledMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…