Skip to content

Commit

Permalink
Add experimental RFC5424 levels
Browse files Browse the repository at this point in the history
```
 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
``
  • Loading branch information
Kikobeats committed Apr 23, 2016
1 parent 41fd01c commit 37661c4
Showing 1 changed file with 27 additions and 7 deletions.
34 changes: 27 additions & 7 deletions lib/Default.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 37661c4

Please sign in to comment.