Skip to content

Commit

Permalink
lib/logging: Set logfiles size to 5M
Browse files Browse the repository at this point in the history
  • Loading branch information
sogehige committed Mar 22, 2018
1 parent fad53fc commit 5220e0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/logging.js
Expand Up @@ -62,10 +62,10 @@ global.log = winston.createLogger({
})
),
exceptionHandlers: [
new winston.transports.File({ filename: logDir + '/exceptions.log', colorize: false, maxsize: 5000 })
new winston.transports.File({ filename: logDir + '/exceptions.log', colorize: false, maxsize: 5242880 })
],
transports: [
new winston.transports.File({ filename: logDir + '/sogebot.log', colorize: false, maxsize: 5000, maxFiles: 5 }),
new winston.transports.File({ filename: logDir + '/sogebot.log', colorize: false, maxsize: 5242880, maxFiles: 5 }),
new winston.transports.Console()
]
})
Expand Down

0 comments on commit 5220e0a

Please sign in to comment.