Skip to content

Commit 4e12056

Browse files
author
Azhor Ahai
committed
fixed mongodb names
1 parent 52c86fa commit 4e12056

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

logger.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
const winston = require("winston")
22
, extend = require('extend')
3-
, dbURL = "http://localhost:27017/LoggerDb"
3+
, dbURL = "mongodb://localhost:27017/LoggerDb"
4+
5+
require('winston-mongodb').MongoDB
6+
47

58
var defaults = {
69
transports: {

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
},
1818
"homepage": "https://github.com/newsengine/logger#readme",
1919
"dependencies": {
20-
"winston": "^2.3.1"
20+
"winston": "^2.3.1",
21+
"winston-mongodb": "^2.0.7"
2122
}
2223
}

0 commit comments

Comments
 (0)