From 76a343151292bb6d5a9c21e9d92b1fcc2255dcad Mon Sep 17 00:00:00 2001 From: Josh Creek Date: Thu, 29 Oct 2020 19:20:49 +0000 Subject: [PATCH] feat(*): Add timestamps to logs --- index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 64ee643..c07f26b 100644 --- a/index.js +++ b/index.js @@ -5,7 +5,10 @@ const client = new Discord.Client(); const logger = winston.createLogger({ level: 'info', - format: winston.format.json(), + format: winston.format.combine( + winston.format.timestamp(), + winston.format.json() + ), defaultMeta: { service: 'user-service' }, transports: [ //