Logging: add event for clearing

The phosphor-logging had an internal event reported for when the event
log is cleared.  Create an equivalent event here for better
documentation (and using the new event format).

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Ia8e0e329c5a2818376f0fb313531a1040af23dd6
diff --git a/gen/xyz/openbmc_project/Logging/meson.build b/gen/xyz/openbmc_project/Logging/meson.build
index 3fbbcbb..39baab1 100644
--- a/gen/xyz/openbmc_project/Logging/meson.build
+++ b/gen/xyz/openbmc_project/Logging/meson.build
@@ -1,4 +1,18 @@
 # Generated file; do not modify.
+generated_sources += custom_target(
+    'xyz/openbmc_project/Logging__cpp'.underscorify(),
+    input: [ '../../../../yaml/xyz/openbmc_project/Logging.events.yaml',  ],
+    output: [ 'event.cpp', 'event.hpp',  ],
+    depend_files: sdbusplusplus_depfiles,
+    command: [
+        sdbuspp_gen_meson_prog, '--command', 'cpp',
+        '--output', meson.current_build_dir(),
+        '--tool', sdbusplusplus_prog,
+        '--directory', meson.current_source_dir() / '../../../../yaml',
+        'xyz/openbmc_project/Logging',
+    ],
+)
+
 subdir('Create')
 generated_others += custom_target(
     'xyz/openbmc_project/Logging/Create__markdown'.underscorify(),
diff --git a/gen/xyz/openbmc_project/meson.build b/gen/xyz/openbmc_project/meson.build
index 72c5026..4bdf294 100644
--- a/gen/xyz/openbmc_project/meson.build
+++ b/gen/xyz/openbmc_project/meson.build
@@ -87,6 +87,20 @@
 subdir('Ipmi')
 subdir('Led')
 subdir('Logging')
+generated_others += custom_target(
+    'xyz/openbmc_project/Logging__markdown'.underscorify(),
+    input: [ '../../../yaml/xyz/openbmc_project/Logging.events.yaml',  ],
+    output: [ 'Logging.md' ],
+    depend_files: sdbusplusplus_depfiles,
+    command: [
+        sdbuspp_gen_meson_prog, '--command', 'markdown',
+        '--output', meson.current_build_dir(),
+        '--tool', sdbusplusplus_prog,
+        '--directory', meson.current_source_dir() / '../../../yaml',
+        'xyz/openbmc_project/Logging',
+    ],
+)
+
 subdir('MCTP')
 subdir('Memory')
 subdir('Metric')
diff --git a/yaml/xyz/openbmc_project/Logging.events.yaml b/yaml/xyz/openbmc_project/Logging.events.yaml
new file mode 100644
index 0000000..e582c38
--- /dev/null
+++ b/yaml/xyz/openbmc_project/Logging.events.yaml
@@ -0,0 +1,11 @@
+version: 1.0.0
+
+events:
+    - name: Cleared
+      en:
+          description: Indicate the user cleared all logs.
+          message: Event log cleared by user.
+      metadata:
+          - name: NUMBER_OF_LOGS
+            description: The number of logs present before clearing.
+            type: uint64