Skip to content

Commit bf3c47a

Browse files
committed
Rotate logs
1 parent 69621bd commit bf3c47a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pimdm/Run.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,13 @@
3030
'stream': 'ext://sys.stdout',
3131
},
3232
'file': {
33-
'class': 'logging.FileHandler',
33+
'class': 'logging.handlers.TimedRotatingFileHandler',
34+
'when': 'D',
3435
},
3536
'errors': {
36-
'class': 'logging.FileHandler',
37+
'class': 'logging.handlers.TimedRotatingFileHandler',
3738
'level': 'ERROR',
39+
'when': 'D',
3840
},
3941
'console_detailed': {
4042
'class': 'logging.StreamHandler',

0 commit comments

Comments
 (0)