Add support for phosphor logging error logs

Provide a compile option to report error logs through phosphor logging.

Change-Id: Id6fc5040c13beac649f96b73443cb5ec3fcff84f
Signed-off-by: Eddie James <eajames@linux.ibm.com>
diff --git a/meson.build b/meson.build
index 87b0a49..420a780 100644
--- a/meson.build
+++ b/meson.build
@@ -32,6 +32,7 @@
 conf_data.set('OBJPATH', '"/xyz/openbmc_project/metrics/memory/BmcECC"')
 conf_data.set('sysfsRootPath', '"/sys/devices/system/edac/mc/mc0/"')
 conf_data.set('sysfsEDACReportPath', '"/sys/module/edac_core/parameters/edac_report"')
+conf_data.set('ECC_PHOSPHOR_LOGGING', get_option('ecc-phosphor-logging').enabled())
 
 configure_file(output : 'config.h',
                configuration : conf_data)