mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2025-04-05 21:01:40 +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 = [
|
const transports = [
|
||||||
new ConsoleTransport({
|
new ConsoleTransport({
|
||||||
format: log => {
|
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];
|
const colour = colours[log.level.name];
|
||||||
return format(
|
return format(
|
||||||
short(`&f&!7 %s &r ${colour[0]}[%s]&r %s${colour[1]}%s&r`),
|
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}',
|
format: '[{timestamp}] [{LEVEL}] ({NAMESPACE}) @{file}:{line}:{column} {content}',
|
||||||
level: config.logs.level,
|
level: config.logs.level,
|
||||||
name: 'Discord Tickets by eartharoid',
|
name: 'Discord Tickets by eartharoid',
|
||||||
|
timestamp: 'YYYY/MM/DD HH:mm:ss',
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user