VOL-396: Limit chameleon logs to fluentd in production environment
Change-Id: I8ec089a41b7effa48e59dfe0c810347b5bd04d3f
diff --git a/chameleon.production.yml b/chameleon.production.yml
new file mode 100644
index 0000000..291d4ab
--- /dev/null
+++ b/chameleon.production.yml
@@ -0,0 +1,39 @@
+logging:
+ version: 1
+
+ formatters:
+ brief:
+ format: '%(message)s'
+ default:
+ format: '%(asctime)s.%(msecs)03d %(levelname)-8s %(module)s.%(funcName)s %(message)s'
+ datefmt: '%Y%m%dT%H%M%S'
+ fluent_fmt:
+ '()': fluent.handler.FluentRecordFormatter
+ format:
+ level: '%(levelname)s'
+ hostname: '%(hostname)s'
+ where: '%(module)s.%(funcName)s'
+
+ handlers:
+ fluent:
+ class: fluent.handler.FluentHandler
+ host: localhost
+ port: 24224
+ tag: chameleon.logging
+ formatter: fluent_fmt
+ level: INFO
+ null:
+ class: logging.NullHandler
+
+ loggers:
+ amqp:
+ handlers: [null]
+ propagate: False
+ conf:
+ handlers: [null]
+ propagate: False
+ '': # root logger
+ handlers: [fluent]
+ level: INFO # this can be bumped up/down by -q and -v command line
+ # options
+ propagate: False
diff --git a/chameleon.yml b/chameleon.yml
index eb2c55d..8bcbe03 100644
--- a/chameleon.yml
+++ b/chameleon.yml
@@ -24,7 +24,7 @@
class: fluent.handler.FluentHandler
host: localhost
port: 24224
- tag: voltha.logging
+ tag: chameleon.logging
formatter: fluent_fmt
level: DEBUG
localRotatingFile: