Add rotating log file inside the chameleon container
Change-Id: Ic1860482498d28598d1fa1ef9fa6d9c1fe6392b3
diff --git a/chameleon.yml b/chameleon.yml
index 2b1d69e..eb2c55d 100644
--- a/chameleon.yml
+++ b/chameleon.yml
@@ -27,6 +27,13 @@
tag: voltha.logging
formatter: fluent_fmt
level: DEBUG
+ localRotatingFile:
+ class: logging.handlers.RotatingFileHandler
+ filename: chameleon.log
+ formatter: default
+ maxBytes: 2097152
+ backupCount: 10
+ level: DEBUG
null:
class: logging.NullHandler
@@ -38,7 +45,7 @@
handlers: [null]
propagate: False
'': # root logger
- handlers: [console, fluent]
+ handlers: [console, fluent, localRotatingFile]
level: INFO # this can be bumped up/down by -q and -v command line
# options
propagate: False