Add SEL error yaml

The SEL error yaml is intented to be used to create logging entries with
specific metadata that will be consumed to present the IPMI SEL entries.

Tested: Verify the error could be created as entry with expected
        metadata in logging.

Signed-off-by: Lei YU <yulei.sh@bytedance.com>
Change-Id: Ia78b621e1b56563dd41114a779d531f5867076f8
diff --git a/gen/xyz/openbmc_project/Logging/SEL/meson.build b/gen/xyz/openbmc_project/Logging/SEL/meson.build
new file mode 100644
index 0000000..87c76ea
--- /dev/null
+++ b/gen/xyz/openbmc_project/Logging/SEL/meson.build
@@ -0,0 +1,14 @@
+# Generated file; do not modify.
+generated_sources += custom_target(
+    'xyz/openbmc_project/Logging/SEL__cpp'.underscorify(),
+    input: [ meson.source_root() / 'xyz/openbmc_project/Logging/SEL.errors.yaml',  ],
+    output: [ 'error.cpp', 'error.hpp',  ],
+    command: [
+        sdbuspp_gen_meson_prog, '--command', 'cpp',
+        '--output', meson.current_build_dir(),
+        '--tool', sdbusplusplus_prog,
+        '--directory', meson.source_root(),
+        'xyz/openbmc_project/Logging/SEL',
+    ],
+)
+
diff --git a/gen/xyz/openbmc_project/Logging/meson.build b/gen/xyz/openbmc_project/Logging/meson.build
index bea0fa0..eb55167 100644
--- a/gen/xyz/openbmc_project/Logging/meson.build
+++ b/gen/xyz/openbmc_project/Logging/meson.build
@@ -74,6 +74,21 @@
     build_by_default: true,
 )
 
+subdir('SEL')
+generated_others += custom_target(
+    'xyz/openbmc_project/Logging/SEL__markdown'.underscorify(),
+    input: [ meson.source_root() / 'xyz/openbmc_project/Logging/SEL.errors.yaml',  ],
+    output: [ 'SEL.md' ],
+    command: [
+        sdbuspp_gen_meson_prog, '--command', 'markdown',
+        '--output', meson.current_build_dir(),
+        '--tool', sdbusplusplus_prog,
+        '--directory', meson.source_root(),
+        'xyz/openbmc_project/Logging/SEL',
+    ],
+    build_by_default: true,
+)
+
 subdir('Settings')
 generated_others += custom_target(
     'xyz/openbmc_project/Logging/Settings__markdown'.underscorify(),
diff --git a/xyz/openbmc_project/Logging/SEL.errors.yaml b/xyz/openbmc_project/Logging/SEL.errors.yaml
new file mode 100644
index 0000000..e07ca7c
--- /dev/null
+++ b/xyz/openbmc_project/Logging/SEL.errors.yaml
@@ -0,0 +1,3 @@
+# xyz.openbmc_project.Logging.SEL.Error.Created
+- name: Created
+  description: A System Event Log is created
diff --git a/xyz/openbmc_project/Logging/SEL.metadata.yaml b/xyz/openbmc_project/Logging/SEL.metadata.yaml
new file mode 100755
index 0000000..0c26e1f
--- /dev/null
+++ b/xyz/openbmc_project/Logging/SEL.metadata.yaml
@@ -0,0 +1,13 @@
+- name: Created
+  level: INFO
+  meta:
+    - str: "RECORD_TYPE=%u"
+      type: uint8
+    - str: "GENERATOR_ID=%u"
+      type: uint16
+    - str: "SENSOR_DATA=%s"
+      type: string
+    - str: "EVENT_DIR=%u"
+      type: uint8
+    - str: "SENSOR_PATH=%s"
+      type: string