From 37661c4124a15699c199c7f36b4a059e1a9749ed Mon Sep 17 00:00:00 2001 From: Kiko Beats Date: Sat, 23 Apr 2016 11:06:17 +0200 Subject: [PATCH] Add experimental RFC5424 levels ``` Numerical Severity Code 0 Emergency: system is unusable 1 Alert: action must be taken immediately 2 Critical: critical conditions 3 Error: error conditions 4 Warning: warning conditions 5 Notice: normal but significant condition 6 Informational: informational messages 7 Debug: debug-level messages `` --- lib/Default.coffee | 34 +++++++++++++++++++++++++++------- 1 file changed, 27 insertions(+), 7 deletions(-) diff --git a/lib/Default.coffee b/lib/Default.coffee index fbeead6..1e80acc 100644 --- a/lib/Default.coffee +++ b/lib/Default.coffee @@ -124,37 +124,57 @@ module.exports = line: color : 'white dim' - error: + emerg: level : 0 color : 'red' symbol: figure.error - warn: + alert: level : 1 color : 'yellow' symbol: figure.warning - success: + crit: level : 2 + color : 'yellow' + symbol: figure.warning + + error: + level : 3 + color : 'red' + symbol: figure.error + + warn: + level : 4 + color : 'yellow' + symbol: figure.warning + + notice: + level : 5 + color : 'cyan bold' + symbol: figure.success + + success: + level : 6 color : 'green' symbol: figure.success info: - level : 3 + level : 7 color : 'white' symbol: figure.info verbose: - level : 4 + level : 8 color : 'cyan' symbol: figure.info debug: - level : 5 + level : 9 color : 'blue' symbol: figure.info silly: - level : 6 + level : 10 color : 'magenta' symbol: figure.info