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.3 to 0.0.4

12

examples/client.js

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

6

lib/Logger.js

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

2

package.json
{
"name": "afflux-logger",
"version": "0.0.3",
"version": "0.0.4",
"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