Permalink
Browse files

Merge pull request #2 from gdusbabek/master

readme had an error when registering a sink.
  • Loading branch information...
2 parents df34d60 + 0bfa6df commit 97de1ad19446cdaa73a1b3b6959d92cfa210478a @pquerna committed Dec 23, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 README.md
View
@@ -24,7 +24,7 @@ In any other part of your application, you can reconfigure the logging subsystem
making it easy to change log levels for specific modules dynamically.
var logmagic = require('logmagic');
- logmagic.registerSink("mysink", function(level, message) { console.log(message); });
+ logmagic.registerSink("mysink", function(module, level, message) { console.log(message); });
/* Send Info an higher in the root logger to stdout */
logmagic.route("__root__", logmagic.INFO, "stdout")

0 comments on commit 97de1ad

Please sign in to comment.