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 52c86fa commit 4e12056Copy full SHA for 4e12056
logger.js
@@ -1,6 +1,9 @@
1
const winston = require("winston")
2
, extend = require('extend')
3
- , dbURL = "http://localhost:27017/LoggerDb"
+ , dbURL = "mongodb://localhost:27017/LoggerDb"
4
+
5
+require('winston-mongodb').MongoDB
6
7
8
var defaults = {
9
transports: {
package.json
@@ -17,6 +17,7 @@
17
},
18
"homepage": "https://github.com/newsengine/logger#readme",
19
"dependencies": {
20
- "winston": "^2.3.1"
+ "winston": "^2.3.1",
21
+ "winston-mongodb": "^2.0.7"
22
}
23
0 commit comments