Skip to content

Commit f29c4ac

Browse files
committed
fix: use descending date format in logs to avoid confusion
1 parent 85ae461 commit f29c4ac

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/lib/logger.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ module.exports = config => {
2323
const transports = [
2424
new ConsoleTransport({
2525
format: log => {
26-
const timestamp = dtf.fill('DD/MM/YY HH:mm:ss', log.timestamp);
26+
const timestamp = dtf.fill('YYYY/MM/DD HH:mm:ss', log.timestamp);
2727
const colour = colours[log.level.name];
2828
return format(
2929
short(`&f&!7 %s &r ${colour[0]}[%s]&r %s${colour[1]}%s&r`),
@@ -45,6 +45,7 @@ module.exports = config => {
4545
format: '[{timestamp}] [{LEVEL}] ({NAMESPACE}) @{file}:{line}:{column} {content}',
4646
level: config.logs.level,
4747
name: 'Discord Tickets by eartharoid',
48+
timestamp: 'YYYY/MM/DD HH:mm:ss',
4849
}),
4950
);
5051
}

0 commit comments

Comments
 (0)