Skip to content

Commit 89d59a5

Browse files
chores: update default_setting.yaml to set log rotation by default.
1 parent a3d498c commit 89d59a5

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/pkg_infra/data/default_settings.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,13 @@ logging:
6969
filters: [allow_all]
7070
stream: ext://sys.stdout
7171
file:
72-
class: logging.FileHandler
72+
class: logging.handlers.RotatingFileHandler
7373
level: DEBUG
7474
formatter: default
7575
filename: "logs/sysbioverse_logger.log"
7676
encoding: utf-8
77+
maxBytes: 10485760 # 10 MB
78+
backupCount: 5 # Keep up to 5 rotated log files
7779

7880
loggers:
7981
default:

0 commit comments

Comments
 (0)