Format code with standardjs and prettier

This commit fixes the style issues introduced in 1bf45ba according to the output
from standardjs and prettier.

Details: https://deepsource.io/gh/ZynerOrg/xyter/transform/e72eada3-2ce9-4223-b070-ed543abe2ba9/
This commit is contained in:
deepsource-autofix[bot] 2022-05-17 09:51:37 +00:00 committed by GitHub
parent 1bf45ba20d
commit 58e1f3a2bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,27 +4,30 @@ import "winston-daily-rotate-file";
const { combine, timestamp, printf, colorize, align, json } = winston.format; const { combine, timestamp, printf, colorize, align, json } = winston.format;
module.exports = { module.exports = {
// Logger initialized async-hronously // Logger initialized async-hronously
logger: async () => { logger: async () => {
return winston.createLogger({ return winston.createLogger({
level: process.env.LOG_LEVEL || "silly", level: process.env.LOG_LEVEL || "silly",
transports: [ transports: [
new winston.transports.DailyRotateFile({ new winston.transports.DailyRotateFile({
filename: "logs/combined-%DATE%.log", filename: "logs/combined-%DATE%.log",
datePattern: "YYYY-MM-DD", datePattern: "YYYY-MM-DD",
maxFiles: "14d", maxFiles: "14d",
format: combine(timestamp(), json()), format: combine(timestamp(), json()),
}),
new winston.transports.Console({
format: combine(
colorize({ all: true }),
timestamp({
format: "YYYY-MM-DD HH:MM:ss",
}), }),
align(), new winston.transports.Console({
printf((info) => `[${info.timestamp}] ${info.level}: ${info.message}`) format: combine(
), colorize({ all: true }),
}), timestamp({
], format: "YYYY-MM-DD HH:MM:ss",
}); }),
}} align(),
printf(
(info) => `[${info.timestamp}] ${info.level}: ${info.message}`
)
),
}),
],
});
},
};