logginator
Advanced tools
Comparing version 1.2.0 to 1.2.1
12
index.js
@@ -8,2 +8,3 @@ var fs = require('fs'); | ||
var moduleName = require('./module-name'); | ||
var util = require('util'); | ||
@@ -101,3 +102,12 @@ // List of syslog levels, because the one present in winston is | ||
return log.createSublogger(name); | ||
var logger = log.createSublogger(name); | ||
logger.info('created logger'); | ||
logger.info('using the following transports:'); | ||
config.forEach(function(transport, i) { | ||
logger.info(util.format('%d: [%s], with config %s', | ||
i + 1, transport.transport, JSON.stringify(transport))); | ||
}); | ||
return logger; | ||
}; |
{ | ||
"name": "logginator", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Creates an instance of TaggedLogger", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
6881
126
0