afflux-logger
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -20,4 +20,16 @@ // __ _______ | ||
var log = require('..').getLogger('forward:user'); | ||
var customLog = require('..').getCustomLogger(); | ||
var prefixedLog = require('..').getPrefixedLogger('forward'); | ||
setInterval(function() { | ||
customLog('bla:user', {data : true}); | ||
}, 1000); | ||
setInterval(function() { | ||
prefixedLog('user', {data : true}); | ||
}, 1000); | ||
setInterval(function() { | ||
log({username : 'toot', pass : 'hehe'}); | ||
@@ -24,0 +36,0 @@ }, 1000); |
@@ -18,2 +18,6 @@ // __ _______ | ||
exports.getPrefixedLogger = function(prefix) { | ||
return Logger.prefixedLogger(prefix); | ||
}; | ||
exports.init = function(opts) { | ||
@@ -79,3 +83,3 @@ Logger.init(opts); | ||
return function(event, msg) { | ||
var eventKey = event + '.' + event; | ||
var eventKey = prefix + '.' + event; | ||
@@ -82,0 +86,0 @@ if (self.display) console.log('[' + eventKey + '] ', msg); |
{ | ||
"name": "afflux-logger", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description" : "Logger client for afflux", | ||
@@ -5,0 +5,0 @@ "author" : { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7425
151
8