From 662aa6e361f8705cfd91261080324ff0e74778e4 Mon Sep 17 00:00:00 2001 From: Myung Bae Date: Tue, 10 Jan 2023 14:20:28 -0600 Subject: Update Logging option for the setting log level In order to be able to more easily debug bmcweb related issue, a new meson option is added to set a specific logging level Which generates the targeted logging traces rather than all of debug traces. The current option -Dbmcweb-logging which can be either disabled or enabled is changed to allow to set the log level for the specific level traces (e.g. error or critical traces) to be written to the journal. -Dbmcweb-logging= where can be disabled, enabled, debug, info, warning, error, or critical. - `disabled`: Turns off all bmcweb log traces. - `enabled` : treated as `debug` - Other option can be described in [Logging Levels](DEVELOPING.md). For an example, to enable only 'error', 'critical' log entries, bmcweb can be built with -Dbmcweb-logging=error Testing: - Verified that only the specific logs (e.g. error and critical logs) were displayed by compiling bmcweb with the specific bmcweb-logging level. Change-Id: I522ca26700ea420fee1a5cf688d3e8c6661f2f55 Signed-off-by: Myung Bae --- DEVELOPING.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'DEVELOPING.md') diff --git a/DEVELOPING.md b/DEVELOPING.md index ae6b5c008f..5468f798e7 100644 --- a/DEVELOPING.md +++ b/DEVELOPING.md @@ -234,15 +234,15 @@ And their use cases: ### Enabling logging bmcweb by default is compiled with runtime logging disabled, as a performance -consideration. To enable it in a standalone build, add the +consideration. To enable it in a standalone build, add the logging level ```ascii --Dlogging='enabled' +-Dlogging='debug' ``` option to your configure flags. If building within Yocto, add the following to your local.conf. ```bash -EXTRA_OEMESON:pn-bmcweb:append = "-Dbmcweb-logging='enabled'" +EXTRA_OEMESON:pn-bmcweb:append = "-Dbmcweb-logging='debug'" ``` -- cgit v1.2.3