fix: use descending date format in logs to avoid confusion

This commit is contained in:
Isaac 2025-02-07 16:24:28 +00:00
parent 85ae461a34
commit f29c4ac765
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('DD/MM/YY 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,6 +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',
}),
);
}