Add rotating log file inside the relevant docker containers
Change-Id: I021c0e3489a823d6b67178247db73c0f24c36181
diff --git a/netconf/netconf.yml b/netconf/netconf.yml
index 2b1d69e..eeee5ca 100644
--- a/netconf/netconf.yml
+++ b/netconf/netconf.yml
@@ -27,6 +27,13 @@
tag: voltha.logging
formatter: fluent_fmt
level: DEBUG
+ localRotatingFile:
+ class: logging.handlers.RotatingFileHandler
+ filename: netconf.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
diff --git a/ofagent/ofagent.yml b/ofagent/ofagent.yml
index 2b1d69e..1c8e764 100644
--- a/ofagent/ofagent.yml
+++ b/ofagent/ofagent.yml
@@ -27,6 +27,13 @@
tag: voltha.logging
formatter: fluent_fmt
level: DEBUG
+ localRotatingFile:
+ class: logging.handlers.RotatingFileHandler
+ filename: ofagent.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
diff --git a/voltha/voltha.yml b/voltha/voltha.yml
index a8d8119..fa2a3ea 100644
--- a/voltha/voltha.yml
+++ b/voltha/voltha.yml
@@ -27,6 +27,13 @@
tag: voltha.logging
formatter: fluent_fmt
level: DEBUG
+ localRotatingFile:
+ class: logging.handlers.RotatingFileHandler
+ filename: voltha.log
+ formatter: default
+ maxBytes: 2097152
+ backupCount: 10
+ level: DEBUG
null:
class: logging.NullHandler
@@ -38,11 +45,14 @@
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
+core:
+ management_vlan: 4091
+
coordinator:
voltha_kv_prefix: 'service/voltha'
leader_key: 'leader'
@@ -72,3 +82,4 @@
'kpis':
kafka_topic: 'voltha.kpis'
filters: [null]
+