mirror of
https://github.com/jcreek/denBot.git
synced 2026-07-13 19:03:45 +00:00
feat(*): Add timestamps to logs
This commit is contained in:
@@ -5,7 +5,10 @@ const client = new Discord.Client();
|
|||||||
|
|
||||||
const logger = winston.createLogger({
|
const logger = winston.createLogger({
|
||||||
level: 'info',
|
level: 'info',
|
||||||
format: winston.format.json(),
|
format: winston.format.combine(
|
||||||
|
winston.format.timestamp(),
|
||||||
|
winston.format.json()
|
||||||
|
),
|
||||||
defaultMeta: { service: 'user-service' },
|
defaultMeta: { service: 'user-service' },
|
||||||
transports: [
|
transports: [
|
||||||
//
|
//
|
||||||
|
|||||||
Reference in New Issue
Block a user