VOL-402 : Update fluentd formatter to use default formatter
Change-Id: I0571d34d2459fb0f523abb5e9f4dc2097e016848
diff --git a/netconf/netconf.production.yml b/netconf/netconf.production.yml
index a7dcefd..32fc912 100644
--- a/netconf/netconf.production.yml
+++ b/netconf/netconf.production.yml
@@ -13,6 +13,9 @@
level: '%(levelname)s'
hostname: '%(hostname)s'
where: '%(module)s.%(funcName)s'
+ fluent_default:
+ format: '%(asctime)s.%(msecs)03d %(levelname)-8s %(threadName)s %(module)s.%(funcName)s %(message)s'
+ datefmt: '%Y%m%dT%H%M%S'
handlers:
fluent:
@@ -20,7 +23,10 @@
host: localhost
port: 24224
tag: netconf.logging
- formatter: fluent_fmt
+ # Since fluent formatter output an exception with grpc data, use
+ # a basic formatter for now.
+ # formatter: fluent_fmt
+ formatter: fluent_default
level: INFO
null:
class: logging.NullHandler
diff --git a/netconf/netconf.yml b/netconf/netconf.yml
index a3a1410..d0867b6 100644
--- a/netconf/netconf.yml
+++ b/netconf/netconf.yml
@@ -13,6 +13,9 @@
level: '%(levelname)s'
hostname: '%(hostname)s'
where: '%(module)s.%(funcName)s'
+ fluent_default:
+ format: '%(asctime)s.%(msecs)03d %(levelname)-8s %(threadName)s %(module)s.%(funcName)s %(message)s'
+ datefmt: '%Y%m%dT%H%M%S'
handlers:
console:
@@ -25,7 +28,10 @@
host: localhost
port: 24224
tag: netconf.logging
- formatter: fluent_fmt
+ # Since fluent formatter output an exception with grpc data, use
+ # a basic formatter for now.
+ # formatter: fluent_fmt
+ formatter: fluent_default
level: DEBUG
localRotatingFile:
class: logging.handlers.RotatingFileHandler
diff --git a/ofagent/ofagent.production.yml b/ofagent/ofagent.production.yml
index 0aa89d0..e812cf4 100644
--- a/ofagent/ofagent.production.yml
+++ b/ofagent/ofagent.production.yml
@@ -13,6 +13,9 @@
level: '%(levelname)s'
hostname: '%(hostname)s'
where: '%(module)s.%(funcName)s'
+ fluent_default:
+ format: '%(asctime)s.%(msecs)03d %(levelname)-8s %(threadName)s %(module)s.%(funcName)s %(message)s'
+ datefmt: '%Y%m%dT%H%M%S'
handlers:
fluent:
@@ -20,7 +23,10 @@
host: localhost
port: 24224
tag: ofagent.logging
- formatter: fluent_fmt
+ # Since fluent formatter output an exception with grpc data, use
+ # a basic formatter for now.
+ # formatter: fluent_fmt
+ formatter: fluent_default
level: INFO
null:
class: logging.NullHandler
diff --git a/ofagent/ofagent.yml b/ofagent/ofagent.yml
index 47ac0d8..25b06a4 100644
--- a/ofagent/ofagent.yml
+++ b/ofagent/ofagent.yml
@@ -13,6 +13,9 @@
level: '%(levelname)s'
hostname: '%(hostname)s'
where: '%(module)s.%(funcName)s'
+ fluent_default:
+ format: '%(asctime)s.%(msecs)03d %(levelname)-8s %(threadName)s %(module)s.%(funcName)s %(message)s'
+ datefmt: '%Y%m%dT%H%M%S'
handlers:
console:
@@ -25,7 +28,10 @@
host: localhost
port: 24224
tag: ofagent.logging
- formatter: fluent_fmt
+ # Since fluent formatter output an exception with grpc data, use
+ # a basic formatter for now.
+ # formatter: fluent_fmt
+ formatter: fluent_default
level: DEBUG
localRotatingFile:
class: logging.handlers.RotatingFileHandler
diff --git a/voltha/voltha.production.yml b/voltha/voltha.production.yml
index 254acc8..3df271f 100644
--- a/voltha/voltha.production.yml
+++ b/voltha/voltha.production.yml
@@ -13,6 +13,9 @@
level: '%(levelname)s'
hostname: '%(hostname)s'
where: '%(module)s.%(funcName)s'
+ fluent_default:
+ format: '%(asctime)s.%(msecs)03d %(levelname)-8s %(threadName)s %(module)s.%(funcName)s %(message)s'
+ datefmt: '%Y%m%dT%H%M%S'
handlers:
fluent:
@@ -20,7 +23,10 @@
host: localhost
port: 24224
tag: voltha.logging
- formatter: fluent_fmt
+ # Since fluent formatter output an exception with grpc data, use
+ # a basic formatter for now.
+ # formatter: fluent_fmt
+ formatter: fluent_default
level: INFO
null:
class: logging.NullHandler
diff --git a/voltha/voltha.yml b/voltha/voltha.yml
index 98c80e3..ede51d3 100644
--- a/voltha/voltha.yml
+++ b/voltha/voltha.yml
@@ -13,7 +13,9 @@
level: '%(levelname)s'
hostname: '%(hostname)s'
where: '%(module)s.%(funcName)s'
-
+ fluent_default:
+ format: '%(asctime)s.%(msecs)03d %(levelname)-8s %(threadName)s %(module)s.%(funcName)s %(message)s'
+ datefmt: '%Y%m%dT%H%M%S'
handlers:
console:
class : logging.StreamHandler
@@ -25,7 +27,10 @@
host: localhost
port: 24224
tag: voltha.logging
- formatter: fluent_fmt
+ # Since fluent formatter output an exception with grpc data, use
+ # a basic formatter for now.
+ # formatter: fluent_fmt
+ formatter: fluent_default
level: DEBUG
localRotatingFile:
class: logging.handlers.RotatingFileHandler