formatting changes
This commit is contained in:
parent
6c6e94c63e
commit
846ea19282
1 changed files with 7 additions and 7 deletions
|
@ -2,7 +2,7 @@ const { createLogger, format, transports, addColors } = require("winston");
|
||||||
const { combine, timestamp, printf, colorize } = format;
|
const { combine, timestamp, printf, colorize } = format;
|
||||||
|
|
||||||
const fmt = printf(({ level, message, timestamp }) => {
|
const fmt = printf(({ level, message, timestamp }) => {
|
||||||
return `${timestamp} - ${level}: ${message}`;
|
return timestamp + ' ' + level + ' ' + message;
|
||||||
});
|
});
|
||||||
|
|
||||||
const customLevels = {
|
const customLevels = {
|
||||||
|
@ -16,12 +16,12 @@ const customLevels = {
|
||||||
},
|
},
|
||||||
|
|
||||||
colours: {
|
colours: {
|
||||||
debug: "magenta",
|
debug: "black magentaBG",
|
||||||
cmd: "white",
|
cmd: "black whiteBG",
|
||||||
info: "cyan",
|
info: "black cyanBG",
|
||||||
ready: "green",
|
ready: "black greenBG",
|
||||||
warn: "yellow",
|
warn: "black yellowBG",
|
||||||
error: "red"
|
error: "black redBG"
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue