From c393a066aba26a8ad18af637867d1779bcc5a1c2 Mon Sep 17 00:00:00 2001 From: Isaac Date: Mon, 10 Feb 2025 03:55:07 +0000 Subject: [PATCH] style: `-` delimited date in logs --- src/lib/logger.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/logger.js b/src/lib/logger.js index 6a1d1b7..38faf22 100644 --- a/src/lib/logger.js +++ b/src/lib/logger.js @@ -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', }), ); }