Skip to content

Commit 608add3

Browse files
committed
Added log levels
1 parent aee078c commit 608add3

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

Readme.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,17 @@ Specifying a specific stream:
2222

2323
var fs = require('fs')
2424
, Log = require('log')
25-
, log = new Log(Log.DEBUG, fs.createWriteStream('my.log'));
25+
, log = new Log(Log.DEBUG, fs.createWriteStream('my.log'));
26+
27+
## Log Levels
28+
29+
Mirror that of syslog:
30+
31+
- 0 __EMERGENCY__ system is unusable
32+
- 1 __ALERT__ action must be taken immediately
33+
- 2 __CRITICAL__ the system is in critical condition
34+
- 3 __ERROR__ error condition
35+
- 4 __WARNING__ warning condition
36+
- 5 __NOTICE__ a normal but significant condition
37+
- 6 __NOTICE__ a purely informational message
38+
- 7 __DEBUG__ messages to debug an application

0 commit comments

Comments
 (0)