openbmc / bmcweb

A do everything Redfish, KVM, GUI, and DBus webserver for OpenBMC
Apache License 2.0
156 stars 131 forks source link

Log message prints. #169

Closed edineshkumar closed 3 years ago

edineshkumar commented 3 years ago

BMCWEB_LOG_DEBUG << "This is my print message";

Where I can see this print message in BMC ?

Is anything need to be enable for BMCWEB_LOG_DEBUG ????

edtanous commented 3 years ago

assuming you've enabled logging, they will end up in the journal. Please see the meson_options for the logging option to enable.

edineshkumar commented 3 years ago

CPPFLAGS +=" -DBMCWEB_ENABLE_LOGGING -DBMCWEB_ENABLE_DEBUG "

I have added above flags to bmcweb, even though print messages are can not able to see in journalctl.

@edtanous, can you give more details on it ???

edineshkumar commented 3 years ago
add_definitions (-DBMCWEB_ENABLE_DEBUG)
add_definitions (-DBMCWEB_ENABLE_LOGGING)

By these, I can able to achieve. Closing the issue. Thanks...!