SNMP error notification for error log entry objects

Made following changes to cater for raising SNMP traps

1) Add watch on error logging entry objects.
2) Add callback functions to call when new error log entries are created



Change-Id: I6dc5cc9ef50101f7a5d2923e5e6f7b3cefc3daf0
Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
diff --git a/meta-witherspoon/recipes-phosphor/events/witherspoon-events-policy/config.yaml b/meta-witherspoon/recipes-phosphor/events/witherspoon-events-policy/config.yaml
index 0d31afb..5c62d45 100644
--- a/meta-witherspoon/recipes-phosphor/events/witherspoon-events-policy/config.yaml
+++ b/meta-witherspoon/recipes-phosphor/events/witherspoon-events-policy/config.yaml
@@ -112,3 +112,22 @@
   properties: occmemtemp property
   eventName: occ
   eventMessage: "Memory throttled due to an over temperature condition."
+
+- name: errorlog path group
+  class: group
+  group: path
+  members:
+    - meta: PATH
+      path: /xyz/openbmc_project/logging
+
+- name: pathwatch errorlog
+  class: pathwatch
+  pathwatch: path
+  paths: errorlog path group
+  pathcallback: create errorlog trap
+
+- name: create errorlog trap
+  class: pathcallback
+  pathcallback: eventpath
+  paths: errorlog path group
+  eventType: ErrorTrap