Skip to content

Commit

Permalink
Enable logfile rotation after 10 MiB
Browse files Browse the repository at this point in the history
  • Loading branch information
HSZemi committed Nov 23, 2020
1 parent cfb9175 commit 86a9b22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/Logger.ts
Expand Up @@ -9,7 +9,7 @@ export const logger = (typeof window === 'undefined') ? winston.createLogger({
),
transports: [
new winston.transports.File({filename: 'error.log', level: 'error'}),
new winston.transports.File({filename: 'aoe2cm.log'}),
new winston.transports.File({filename: 'aoe2cm.log', maxsize: 10485760}),
new winston.transports.Console(),
]
}) : {
Expand Down

0 comments on commit 86a9b22

Please sign in to comment.