Permalink
Browse files

docs

  • Loading branch information...
1 parent 654016d commit 52b96876afdbddf34ecc854adff4c4266adb0917 @fatshotty committed Oct 11, 2012
Showing with 5 additions and 4 deletions.
  1. +5 −4 README.md
View
@@ -4,21 +4,22 @@
## SUMMARY
+Removed the `sys.print` because it is obsolete
A simple logging library that combines the simple APIs of Ruby's logger.rb and browser-js console.log()
## USAGE
A logger has 5 different levels of logging in a specific order:
'fatal', 'error', 'warn', 'info', 'debug'
-
-Each of these log levels has its own method on the logging instance. You can set the maximum log level on a logger at runtime.
+
+Each of these log levels has its own method on the logging instance. You can set the maximum log level on a logger at runtime.
By default, a logger writes to STDOUT, but given a writeable file path, it will log directly to a file.
### Instantiation:
- // node/common.js style
+ // node/common.js style
var logger = require('./logger').createLogger(); // logs to STDOUT
var logger = require('./logger').createLogger('development.log'); // logs to a file
@@ -43,7 +44,7 @@ You can completely customize the look of the log by overriding the `format()` me
};
logger.debug('message');
//=> 1276365362167; message
-
+
## COMMENTS/ISSUES:
F-f-fork it, baby.

0 comments on commit 52b9687

Please sign in to comment.