afflux-logger
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -12,3 +12,3 @@ // __ _______ | ||
MBClient.init({ | ||
port : 3044, | ||
port : 40356, | ||
ip : '127.0.0.1', | ||
@@ -19,2 +19,9 @@ remote : true, | ||
require('./child.js'); | ||
var log = require('..').getLogger('forward:user'); | ||
setInterval(function() { | ||
log({username : 'toot', pass : 'hehe'}); | ||
}, 1000); | ||
@@ -60,4 +60,3 @@ // __ _______ | ||
return function(msg) { | ||
if (self.display) | ||
console.log('[' + event + '] ', msg); | ||
if (self.display) console.log('[' + event + '] ', msg); | ||
if (self.remote) | ||
@@ -71,7 +70,16 @@ self.send(event, msg); | ||
return function(event, msg) { | ||
if (self.display) | ||
console.log('[' + event + '] ', msg); | ||
if (self.display) console.log('[' + event + '] ', msg); | ||
if (self.remote) | ||
self.send(event, msg); | ||
}; | ||
}, | ||
prefixedLogger : function(prefix) { | ||
var self = this; | ||
return function(event, msg) { | ||
var eventKey = event + '.' + event; | ||
if (self.display) console.log('[' + eventKey + '] ', msg); | ||
if (self.remote) self.send(eventKey, msg); | ||
}; | ||
} | ||
@@ -78,0 +86,0 @@ }; |
{ | ||
"name": "afflux-logger", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"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
7064
140