prettyify code
This commit is contained in:
@ -1,17 +1,17 @@
|
||||
const winston = require('winston')
|
||||
const winston = require("winston");
|
||||
|
||||
winston.remove(winston.transports.Console)
|
||||
winston.remove(winston.transports.Console);
|
||||
|
||||
winston.add(winston.transports.File, {
|
||||
filename: 'minetrack.log'
|
||||
})
|
||||
filename: "minetrack.log",
|
||||
});
|
||||
|
||||
winston.add(winston.transports.Console, {
|
||||
timestamp: () => {
|
||||
const date = new Date()
|
||||
return date.toLocaleTimeString() + ' ' + date.toLocaleDateString()
|
||||
const date = new Date();
|
||||
return date.toLocaleTimeString() + " " + date.toLocaleDateString();
|
||||
},
|
||||
colorize: true
|
||||
})
|
||||
colorize: true,
|
||||
});
|
||||
|
||||
module.exports = winston
|
||||
module.exports = winston;
|
||||
|
Reference in New Issue
Block a user