VOL-397:  Create production yml files for netconf and ofagent to direct all logs to fluentd

Change-Id: I62f93121a85104eba444a77002d08ed273ac0a52
diff --git a/netconf/netconf.production.yml b/netconf/netconf.production.yml
new file mode 100644
index 0000000..a7dcefd
--- /dev/null
+++ b/netconf/netconf.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: netconf.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/netconf/netconf.yml b/netconf/netconf.yml
index eeee5ca..a3a1410 100644
--- a/netconf/netconf.yml
+++ b/netconf/netconf.yml
@@ -24,7 +24,7 @@
             class: fluent.handler.FluentHandler
             host: localhost
             port: 24224
-            tag: voltha.logging
+            tag: netconf.logging
             formatter: fluent_fmt
             level: DEBUG
         localRotatingFile:
diff --git a/ofagent/ofagent.production.yml b/ofagent/ofagent.production.yml
new file mode 100644
index 0000000..0aa89d0
--- /dev/null
+++ b/ofagent/ofagent.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: ofagent.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/ofagent/ofagent.yml b/ofagent/ofagent.yml
index 1c8e764..47ac0d8 100644
--- a/ofagent/ofagent.yml
+++ b/ofagent/ofagent.yml
@@ -24,7 +24,7 @@
             class: fluent.handler.FluentHandler
             host: localhost
             port: 24224
-            tag: voltha.logging
+            tag: ofagent.logging
             formatter: fluent_fmt
             level: DEBUG
         localRotatingFile: