mirror of
https://github.com/aurora-dot/pastel.codes.git
synced 2024-11-22 08:12:19 +00:00
Please work
This commit is contained in:
parent
041377a977
commit
a2d1ab36d3
@ -21,10 +21,11 @@ var options = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// instantiate a new Winston Logger with the settings defined above
|
// instantiate a new Winston Logger with the settings defined above
|
||||||
var logger = new winston.Logger({
|
let logger = winston.createLogger({
|
||||||
transports: [
|
transports: [
|
||||||
new winston.transports.File(options.file),
|
new (winston.transports.Console)(options.console),
|
||||||
new winston.transports.Console(options.console)
|
new (winston.transports.File)(options.errorFile),
|
||||||
|
new (winston.transports.File)(options.file)
|
||||||
],
|
],
|
||||||
exitOnError: false, // do not exit on handled exceptions
|
exitOnError: false, // do not exit on handled exceptions
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user