All files / packages/logger/src/triple-beam index.ts

0% Statements 0/9
0% Branches 0/1
0% Functions 0/1
0% Lines 0/9

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17                                 
import { cli, npm, syslog } from './config'
 
export const configs = { cli, npm, syslog }
 
export const LEVEL = Symbol.for('level')
export const MESSAGE = Symbol.for('message')
export const SPLAT = Symbol.for('splat')
 
/**
 * 简易日志级别
 * @description 供外部使用
 */
export const SimpleLevelTuple = ['ERROR', 'WARN', 'INFO', 'DEBUG'] as const
export const CliLevelTuple = ['ERROR', 'WARN', 'HELP', 'DATA', 'INFO', 'DEBUG', 'PROMPT', 'VERBOSE', 'INPUT', 'SILLY'] as const
export const NpmLevelTuple = ['ERROR', 'WARN', 'INFO', 'HTTP', 'VERBOSE', 'DEBUG', 'SILLY'] as const
export const SyslogLevelTuple = ['EMERG', 'ALERT', 'CRIT', 'ERROR', 'WARNING', 'NOTICE', 'INFO', 'DEBUG'] as const