We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d08e52b commit 52c86faCopy full SHA for 52c86fa
README
@@ -0,0 +1,2 @@
1
+require this module as a variable, and initialize the logger as logger.getLoggerObj
2
+
logger.js
@@ -1,5 +1,6 @@
const winston = require("winston")
, extend = require('extend')
3
+ , dbURL = "http://localhost:27017/LoggerDb"
4
5
var defaults = {
6
transports: {
@@ -20,6 +21,11 @@ var defaults = {
20
21
json: false,
22
handleExceptions: true,
23
humanReadableUnhandledException: true
24
+ },
25
+ MongoDB: {
26
+ db : dbURL,
27
+ collection: 'logs'
28
29
}
30
31
0 commit comments