Log error/warn to stderr

This commit is contained in:
Essem 2021-08-09 10:54:56 -05:00
parent cd469667cb
commit 3ce2352d1c
No known key found for this signature in database
GPG key ID: 7D497397CC3A2A8C

2
app.js
View file

@ -102,7 +102,7 @@ if (isMaster) {
debug: 4 debug: 4
}, },
transports: [ transports: [
new winston.transports.Console({ format: winston.format.colorize({ all: true }) }), new winston.transports.Console({ format: winston.format.colorize({ all: true }), stderrLevels: ["error", "warn"] }),
new winston.transports.File({ filename: "logs/error.log", level: "error" }), new winston.transports.File({ filename: "logs/error.log", level: "error" }),
new winston.transports.File({ filename: "logs/main.log" }) new winston.transports.File({ filename: "logs/main.log" })
], ],