Permalink
Browse files

Pass messages into Minilog

  • Loading branch information...
1 parent 80a63ca commit 3502ff11dc89871b3f9e2145dd4d149ba7596a82 @mixu committed Mar 2, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/minilog.js
View
@@ -61,12 +61,12 @@ exports.pipe = function(dest) {
var config = {};
if(dest._isFormatted) {
log.on('item', function(name, level, args) {
- if(config.filter && !config.filter(name, level)) return;
+ if(config.filter && !config.filter(name, level, args)) return;
dest.write((config.format ? config : dest).format(name, level, args));
});
} else {
log.on('item', function(name, level, args) {
- if(config.filter && !config.filter(name, level)) return;
+ if(config.filter && !config.filter(name, level, args)) return;
dest.write((config.format ? config : def).format(name, level, log.serialize(args)));
});
}

0 comments on commit 3502ff1

Please sign in to comment.