summaryrefslogtreecommitdiff
path: root/config/bmcweb_config.h.in
diff options
context:
space:
mode:
authorMyung Bae <myungbae@us.ibm.com>2023-01-10 23:20:28 +0300
committerEd Tanous <ed@tanous.net>2023-05-05 20:07:45 +0300
commit662aa6e361f8705cfd91261080324ff0e74778e4 (patch)
treebcda5a7de00a79aadb34b2b9d40cef5bef3c7f13 /config/bmcweb_config.h.in
parentf7afb17bf0a84101b26474bbd4dfc8f3aa3eb3f7 (diff)
downloadbmcweb-662aa6e361f8705cfd91261080324ff0e74778e4.tar.xz
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=<log-level> where <log-level> 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 <myungbae@us.ibm.com>
Diffstat (limited to 'config/bmcweb_config.h.in')
-rw-r--r--config/bmcweb_config.h.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/config/bmcweb_config.h.in b/config/bmcweb_config.h.in
index b0a3a7bf51..ae98675d3c 100644
--- a/config/bmcweb_config.h.in
+++ b/config/bmcweb_config.h.in
@@ -14,4 +14,6 @@ constexpr const size_t bmcwebHttpReqBodyLimitMb = @BMCWEB_HTTP_REQ_BODY_LIMIT_MB
constexpr const char* mesonInstallPrefix = "@MESON_INSTALL_PREFIX@";
constexpr const bool bmcwebInsecureEnableHttpPushStyleEventing = @BMCWEB_INSECURE_ENABLE_HTTP_PUSH_STYLE_EVENTING@ == 1;
+
+constexpr const char* bmcwebLoggingLevel = "@BMCWEB_LOGGING_LEVEL@";
// clang-format on