Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

docs

  • Loading branch information...
commit dcb1ddbccd5b20c08f8928b02a90865d37a64c17 1 parent e47be1a
@tj authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 Readme.md
View
6 Readme.md
@@ -10,10 +10,10 @@
## Example
-Log level defaults to __DEBUG__ however here we specify __INFO__, and the stream defaults to _stdout_:
+Log level defaults to __DEBUG__ however here we specify __info__, and the stream defaults to _stdout_:
var Log = require('log')
- , log = new Log(Log.INFO);
+ , log = new Log('info');
log.debug('preparing email');
log.info('sending email');
@@ -23,7 +23,7 @@ Specifying a specific stream:
var fs = require('fs')
, Log = require('log')
- , log = new Log(Log.DEBUG, fs.createWriteStream('my.log'));
+ , log = new Log('debug', fs.createWriteStream('my.log'));
Instead of the log level constants, you may also supply a string:
Please sign in to comment.
Something went wrong with that request. Please try again.