Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

afflux-logger

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

afflux-logger - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

11

examples/client.js

@@ -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);

16

lib/Logger.js

@@ -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" : {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc