mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-05 05:25:49 +01:00
removed error.log everything will go to output.log
This commit is contained in:
8
app.js
8
app.js
@@ -38,12 +38,8 @@ global.env = process.env.NODE_ENV || 'production';
|
|||||||
winston.remove(winston.transports.Console);
|
winston.remove(winston.transports.Console);
|
||||||
winston.add(winston.transports.Console, {
|
winston.add(winston.transports.Console, {
|
||||||
colorize: true,
|
colorize: true,
|
||||||
timestamp: true
|
timestamp: true,
|
||||||
});
|
level: 'info'
|
||||||
|
|
||||||
winston.add(winston.transports.File, {
|
|
||||||
filename: 'logs/error.log',
|
|
||||||
level: 'error'
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// TODO: remove once https://github.com/flatiron/winston/issues/280 is fixed
|
// TODO: remove once https://github.com/flatiron/winston/issues/280 is fixed
|
||||||
|
|||||||
@@ -60,7 +60,7 @@
|
|||||||
"uglify-js": "git+https://github.com/julianlam/UglifyJS2.git",
|
"uglify-js": "git+https://github.com/julianlam/UglifyJS2.git",
|
||||||
"underscore": "~1.7.0",
|
"underscore": "~1.7.0",
|
||||||
"validator": "~3.21.0",
|
"validator": "~3.21.0",
|
||||||
"winston": "^0.8.0",
|
"winston": "^0.8.1",
|
||||||
"xregexp": "~2.0.0"
|
"xregexp": "~2.0.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
Reference in New Issue
Block a user