mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2025-04-05 04:41:41 +03:00
fix: use descending date format in logs to avoid confusion
This commit is contained in:
parent
85ae461a34
commit
f29c4ac765
@ -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',
|
||||
}),
|
||||
);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user