UNPKG

if-logger

Version:

`if-logger` can set whether to log or not dynamically

44 lines 803 B
"use strict"; exports.__esModule = true; exports.LOG_LEVEL = exports.NODE_COLOR = void 0; exports.NODE_COLOR = { red: '\x1b[31m%s\x1b[0m', yellow: '\x1b[33m%s\x1b[0m', white: '%s', green: '\x1b[32m%s\x1b[0m', gray: '\x1b[90m%s\x1b[0m', cyan: '\x1b[36m%s\x1b[0m' }; exports.LOG_LEVEL = { off: { priority: 0 }, error: { priority: 1, color: 'red' }, warn: { priority: 2, color: 'yellow' }, log: { priority: 3, color: 'white' }, info: { priority: 4, color: 'green' }, verbose: { priority: 5, color: 'gray' }, debug: { priority: 6, color: 'cyan' }, all: { priority: 7 } }; //# sourceMappingURL=setting.js.map