style: - delimited date in logs

This commit is contained in:
Isaac 2025-02-10 03:55:07 +00:00
parent 8ac7c65a2d
commit c393a066ab
No known key found for this signature in database
GPG Key ID: 0DE40AE37BBA5C33

View File

@ -23,7 +23,7 @@ module.exports = config => {
const transports = [
new ConsoleTransport({
format: log => {
const timestamp = dtf.fill('YYYY/MM/DD HH:mm:ss', log.timestamp);
const timestamp = dtf.fill('YYYY-MM-DD HH:mm:ss', log.timestamp);
const colour = colours[log.level.name];
return format(
short(`&f&!7 %s &r ${colour[0]}[%s]&r %s${colour[1]}%s&r`),
@ -45,7 +45,7 @@ module.exports = config => {
format: '[{timestamp}] [{LEVEL}] ({NAMESPACE}) @{file}:{line}:{column} {content}',
level: config.logs.level,
name: 'Discord Tickets by eartharoid',
timestamp: 'YYYY/MM/DD HH:mm:ss',
timestamp: 'YYYY-MM-DD HH:mm:ss',
}),
);
}