/openbmc/intel-ipmi-oem/src/ |
H A D | smbiosmdrv2handler.cpp | 28 #include <phosphor-logging/log.hpp> 80 phosphor::logging::log<phosphor::logging::level::ERR>( in sdplusMdrv2GetProperty() 82 phosphor::logging::entry("ERROR=%s", e.what())); in sdplusMdrv2GetProperty() 106 phosphor::logging::log<phosphor::logging::level::ERR>( in syncDirCommonData() 108 phosphor::logging::entry("ERROR=%s", e.what())); in syncDirCommonData() 114 phosphor::logging::log<phosphor::logging::level::ERR>( in syncDirCommonData() 132 phosphor::logging::log<phosphor::logging::level::ERR>( in findDataId() 152 phosphor::logging::log<phosphor::logging::level::ERR>( in findDataId() 154 phosphor::logging::entry("ERROR=%s", e.what()), in findDataId() 155 phosphor::logging::entry("SERVICE=%s", service.c_str()), in findDataId() [all …]
|
H A D | firmware-update.cpp | 19 #include <phosphor-logging/log.hpp> 253 phosphor::logging::log<phosphor::logging::level::INFO>( in verify() 259 phosphor::logging::log<phosphor::logging::level::ERR>( in verify() 392 phosphor::logging::log<phosphor::logging::level::ERR>( in updateActivationPercent() 410 phosphor::logging::log<phosphor::logging::level::INFO>( in activationTimerTimeout() 412 phosphor::logging::entry("PERCENT:%d", progressPercent)); in activationTimerTimeout() 462 phosphor::logging::log<phosphor::logging::level::INFO>( in activateImage() 464 phosphor::logging::entry("OBJPATH =%s", objPath.c_str())); in activateImage() 470 phosphor::logging::log<phosphor::logging::level::ERR>( in activateImage() 483 phosphor::logging::log<phosphor::logging::level::INFO>( in activateImage() [all …]
|
H A D | biosconfigcommands.cpp | 159 phosphor::logging::log<phosphor::logging::level::ERR>( in fillPayloadData() 169 phosphor::logging::log<phosphor::logging::level::ERR>( in fillPayloadData() 177 phosphor::logging::log<phosphor::logging::level::ERR>( in fillPayloadData() 197 phosphor::logging::log<phosphor::logging::level::ERR>( in getPendingList() 216 phosphor::logging::log<phosphor::logging::level::ERR>(ex.what()); in getPendingList() 226 phosphor::logging::log<phosphor::logging::level::ERR>(err.c_str()); in getPendingList() 235 phosphor::logging::log<phosphor::logging::level::ERR>( in getPendingList() 254 phosphor::logging::log<phosphor::logging::level::ERR>( in getPendingList() 284 phosphor::logging::log<phosphor::logging::level::ERR>( in computeCheckSum() 295 phosphor::logging::log<phosphor::logging::level::ERR>( in computeCheckSum() [all …]
|
H A D | oemcommands.cpp | 35 #include <phosphor-logging/log.hpp> 128 phosphor::logging::log<phosphor::logging::level::ERR>( in getChassisSerialNumber() 130 phosphor::logging::entry("INTF=%s", intf.c_str())); in getChassisSerialNumber() 154 phosphor::logging::log<phosphor::logging::level::ERR>( in getChassisSerialNumber() 163 phosphor::logging::log<phosphor::logging::level::ERR>(e.what()); in getChassisSerialNumber() 209 phosphor::logging::log<phosphor::logging::level::ERR>( in loadPfrConfig() 211 phosphor::logging::entry("INTERFACE=%s", sessionIntf), in loadPfrConfig() 212 phosphor::logging::entry("ERROR=%s", ec.message().c_str())); in loadPfrConfig() 229 phosphor::logging::log<phosphor::logging::level::ERR>( in loadPfrConfig() 231 phosphor::logging::entry("ERROR=%s", ec.message().c_str())); in loadPfrConfig() [all …]
|
H A D | appcommands.cpp | 24 #include <phosphor-logging/elog-errors.hpp> 25 #include <phosphor-logging/lg2.hpp> 26 #include <phosphor-logging/log.hpp> 32 using namespace phosphor::logging; 64 phosphor::logging::log<phosphor::logging::level::ERR>( in initBMCDeviceState() 66 phosphor::logging::entry("ERROR=%s", ec.message().c_str()), in initBMCDeviceState() 67 phosphor::logging::entry("INTERFACE=%s", bmcStateIntf)); in initBMCDeviceState() 87 phosphor::logging::log<phosphor::logging::level::ERR>( in initBMCDeviceState() 99 phosphor::logging::log<phosphor::logging::level::INFO>( in initBMCDeviceState() 110 phosphor::logging::log<phosphor::logging::level::ERR>( in initBMCDeviceState() [all …]
|
H A D | bridgingcommands.cpp | 21 #include <phosphor-logging/log.hpp> 251 phosphor::logging::log<phosphor::logging::level::INFO>( in handleIpmbChannel() 267 phosphor::logging::log<phosphor::logging::level::INFO>( in handleIpmbChannel() 286 phosphor::logging::log<phosphor::logging::level::INFO>( in handleIpmbChannel() 294 phosphor::logging::log<phosphor::logging::level::INFO>( in handleIpmbChannel() 313 phosphor::logging::log<phosphor::logging::level::ERR>( in handleIpmbChannel() 331 phosphor::logging::log<phosphor::logging::level::WARNING>( in handleIpmbChannel() 357 phosphor::logging::log<phosphor::logging::level::INFO>( in handleIpmbChannel() 403 phosphor::logging::log<phosphor::logging::level::INFO>( in ipmiAppSendMessage() 411 phosphor::logging::log<phosphor::logging::level::INFO>( in ipmiAppSendMessage() [all …]
|
/openbmc/phosphor-logging/ |
H A D | README.md | 1 # phosphor-logging 3 The phosphor logging repository provides mechanisms for event and journal 4 logging. 9 - [Structured Logging](#structured-logging) 13 - [Remote Logging](#remote-logging-via-rsyslog) 23 ## Structured Logging 25 phosphor-logging provides APIs to add program logging information to the 26 systemd-journal and it is preferred that this logging data is formatted in a 29 See [Structured Logging](./docs/structured-logging.md) for more details on this 35 phosphor-log-manager that reside at `/xyz/openbmc_project/logging/entry/X`, [all …]
|
/openbmc/phosphor-dbus-interfaces/gen/xyz/openbmc_project/Logging/ |
H A D | meson.build | 11 sdbusplus_current_path = 'xyz/openbmc_project/Logging' 15 input: ['../../../../yaml/xyz/openbmc_project/Logging.events.yaml'], 28 'xyz/openbmc_project/Logging', 36 'xyz/openbmc_project/Logging/Create__markdown'.underscorify(), 38 '../../../../yaml/xyz/openbmc_project/Logging/Create.interface.yaml', 52 'xyz/openbmc_project/Logging/Create', 60 'xyz/openbmc_project/Logging/Entry__markdown'.underscorify(), 61 input: ['../../../../yaml/xyz/openbmc_project/Logging/Entry.interface.yaml'], 74 'xyz/openbmc_project/Logging/Entry', 82 'xyz/openbmc_project/Logging/ErrorBlocksTransition__markdown'.underscorify(), [all …]
|
/openbmc/openpower-hw-diags/util/ |
H A D | pdbg_callback.hpp | 6 #include <phosphor-logging/log.hpp> 14 * @brief callback function for logging with log level 32 phosphor::logging::log<phosphor::logging::level::ERR>(msg); in pdbg_log_callback() 35 phosphor::logging::log<phosphor::logging::level::WARNING>(msg); in pdbg_log_callback() 38 phosphor::logging::log<phosphor::logging::level::NOTICE>(msg); in pdbg_log_callback() 41 phosphor::logging::log<phosphor::logging::level::INFO>(msg); in pdbg_log_callback() 44 phosphor::logging::log<phosphor::logging::level::DEBUG>(msg); in pdbg_log_callback() 47 phosphor::logging::log<phosphor::logging::level::ERR>(msg); in pdbg_log_callback()
|
/openbmc/u-boot/doc/ |
H A D | README.log | 1 Logging in U-Boot 18 U-Boot's logging feature aims to satisfy this goal for both users and 22 Logging levels 25 There are a number logging levels available, in increasing order of verbosity: 39 Logging category 42 Logging can come from a wide variety of places within U-Boot. Each log message 57 Enabling logging 60 The following options are used to enable logging at compile time: 62 CONFIG_LOG - Enables the logging system 67 If CONFIG_LOG is not set, then no logging will be available. [all …]
|
/openbmc/openbmc-test-automation/data/ |
H A D | pel_variables.py | 17 "busctl call xyz.openbmc_project.Logging /xyz/openbmc_project/logging " 18 " xyz.openbmc_project.Logging.Create Create ssa{ss} " 24 " xyz.openbmc_project.Logging.Entry.Level.Error 0" 30 ' xyz.openbmc_project.Logging.Entry.Level.Error 2 "TIMEOUT_IN_MSEC" "5"' 36 ERROR_LOG_CREATE_BASE_CMD + "org.open_power.Logging.Error.TestError1 " 37 " xyz.openbmc_project.Logging.Entry.Level.Error 0" 43 " xyz.openbmc_project.Logging.Entry.Level.Informational 0" 52 ERROR_LOG_CREATE_BASE_CMD + "org.open_power.Logging.Error.TestError1 " 53 " xyz.openbmc_project.Logging.Entry.Level.Error 0" 59 " xyz.openbmc_project.Logging.Entry.Level.Warning 0" [all …]
|
/openbmc/phosphor-dbus-interfaces/yaml/xyz/openbmc_project/Logging/ |
H A D | README.md | 1 # OpenBMC logging 3 - Provides a mechanism for logging events and errors to the journal. 42 ## Logging to journal 50 - Logging entry D-Bus objects are created for the committed errors. 53 https://github.com/openbmc/phosphor-logging/blob/master/lib/include/phosphor-logging/log.hpp 55 https://github.com/openbmc/phosphor-logging/blob/master/lib/include/phosphor-logging/elog.hpp 59 - Use the [DeleteAll.interface.yaml][deleteall] for deleting all the logging 67 ### Logging in 78 ### List logging child objects recursively 81 curl -c cjar -b cjar -k https://${bmc}/xyz/openbmc_project/logging/list [all …]
|
/openbmc/phosphor-logging/docs/ |
H A D | structured-logging.md | 1 # Structured Logging 3 There are currently two APIs for structured logging: 4 [log](../lib/include/phosphor-logging/log.hpp) and 5 [lg2](../lib/include/phosphor-logging/lg2.hpp). If your code is C++20 (or later) 8 ## Why structured logging? 10 Structured logging is a method of logging where every variable piece of data is 12 logging where logged events are free-form strings. 14 The principal logging daemon in OpenBMC (systemd-journald) natively supports 15 structured logging. As a result, there are some designs in place where specific 21 form of IPC, the value of structured logging persists. It is very common as part [all …]
|
/openbmc/openbmc/poky/bitbake/lib/bb/ |
H A D | msg.py | 15 import logging 16 import logging.config 22 class BBLogFormatter(logging.Formatter): 23 """Formatter which ensures that our 'plain' messages (logging.INFO + 1) are used as is""" 25 DEBUG3 = logging.DEBUG - 2 26 DEBUG2 = logging.DEBUG - 1 27 DEBUG = logging.DEBUG 28 VERBOSE = logging.INFO - 1 29 NOTE = logging.INFO 30 PLAIN = logging.INFO + 1 [all …]
|
/openbmc/telemetry/src/ |
H A D | trigger_actions.cpp | 9 #include <phosphor-logging/log.hpp> 63 phosphor::logging::log<phosphor::logging::level::INFO>(msg.c_str()); in commit() 113 phosphor::logging::log<phosphor::logging::level::INFO>( in commit() 114 "Logging numeric trigger action to Redfish Event Log.", in commit() 115 phosphor::logging::entry("REDFISH_MESSAGE_ID=%s", messageId), in commit() 116 phosphor::logging::entry("REDFISH_MESSAGE_ARGS=%s,%f,%s", in commit() 122 phosphor::logging::log<phosphor::logging::level::INFO>( in commit() 123 "Logging numeric trigger action to Redfish Event Log.", in commit() 124 phosphor::logging::entry("REDFISH_MESSAGE_ID=%s", messageId), in commit() 125 phosphor::logging::entry("REDFISH_MESSAGE_ARGS=%s,%f,%f,%s", in commit() [all …]
|
/openbmc/phosphor-power/ |
H A D | elog-errors.hpp | 5 #include <phosphor-logging/elog.hpp> 6 #include <phosphor-logging/log.hpp> 238 namespace phosphor::logging namespace 256 phosphor::logging::org::open_power::witherspoon::fault::Shutdown; 268 phosphor::logging::org::open_power::witherspoon::fault::Shutdown; 287 phosphor::logging::org::open_power::witherspoon::fault::PowerOnFailure; 299 phosphor::logging::org::open_power::witherspoon::fault::PowerOnFailure; 318 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode0; 330 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode0; 349 phosphor::logging::org::open_power::witherspoon::fault::ErrorCode1; [all …]
|
/openbmc/ipmbbridge/ |
H A D | ipmbbridged.cpp | 25 #include <phosphor-logging/log.hpp> 250 phosphor::logging::log<phosphor::logging::level::INFO>( in addFilter() 252 phosphor::logging::entry("netFn = %d", reqNetFn), in addFilter() 253 phosphor::logging::entry("cmd = %d", cmd)); in addFilter() 283 phosphor::logging::log<phosphor::logging::level::ERR>( in ipmbSendI2cFrame() 450 phosphor::logging::log<phosphor::logging::level::ERR>( in processI2cEvent() 459 phosphor::logging::log<phosphor::logging::level::ERR>( in processI2cEvent() 479 phosphor::logging::log<phosphor::logging::level::ERR>( in processI2cEvent() 498 phosphor::logging::log<phosphor::logging::level::ERR>( in processI2cEvent() 517 phosphor::logging::log<phosphor::logging::level::ERR>( in processI2cEvent() [all …]
|
/openbmc/docs/designs/ |
H A D | event-logging.md | 1 # Error and Event Logging 15 primarily using phosphor-logging and one using rsyslog, both of which have gaps 86 logging messages into any application that wants to record these events, tightly 90 maintainers have rejected adding new Redfish-specific logging messages to their 102 https://github.com/openbmc/docs/blob/master/architecture/redfish-logging-in-bmcweb.md 108 ### Existing phosphor-logging implementation 118 client. `phosphor-logging` extended this to also add metadata associated to the 129 `phosphor-logging` metadata definition (in 154 `phosphor-logging`'s daemon for recording. As a side-effect of both calls, the 157 When an error is sent to the `phosphor-logging` daemon, it will: [all …]
|
H A D | fail-boot-on-hw-error.md | 30 Extensions within phosphor-logging may process logs that do not always come 31 through the standard phosphor-logging interfaces (for example logs sent down by 40 phosphor-logging log is created with a inventory callout 56 utilized by phosphor-logging extensions to halt firmware for other causes 68 `xyz.openbmc_project.Logging.Settings`. Within this create a boolean property 74 `xyz.openbmc_project.Logging.ErrorBlocksTransition` 77 `/xyz/openbmc_project/logging/blockX` where X is the instance of the 80 When an error is created via a phosphor-logging interface, the software will 82 `xyz.openbmc_project.Logging.Settings.QuiesceOnHwError`. If this is true then 83 phosphor-logging will create a `/xyz/openbmc_project/logging/blockX` D-Bus [all …]
|
/openbmc/smbios-mdr/src/ |
H A D | mdrv2.cpp | 23 #include <phosphor-logging/elog-errors.hpp> 41 phosphor::logging::log<phosphor::logging::level::ERR>( in getDirectoryInformation() 129 phosphor::logging::log<phosphor::logging::level::ERR>( in getDataOffer() 209 phosphor::logging::log<phosphor::logging::level::ERR>( in readDataFromFlash() 215 phosphor::logging::log<phosphor::logging::level::ERR>( in readDataFromFlash() 222 phosphor::logging::log<phosphor::logging::level::ERR>( in readDataFromFlash() 232 phosphor::logging::log<phosphor::logging::level::ERR>( in readDataFromFlash() 239 phosphor::logging::log<phosphor::logging::level::ERR>( in readDataFromFlash() 264 phosphor::logging::log<phosphor::logging::level::ERR>( in sendDirectoryInformation() 272 phosphor::logging::log<phosphor::logging::level::ERR>( in sendDirectoryInformation() [all …]
|
/openbmc/openbmc/poky/meta/lib/oeqa/selftest/cases/ |
H A D | bblogging.py | 19 result = bitbake("logging-test -c shelltest -f", ignore_status = True) 27 result = bitbake("logging-test -c shelltest -f", ignore_status = True) 35 result = bitbake("logging-test -c shelltest -f -v", ignore_status = True) 44 result = bitbake("logging-test -c shelltest -f -v", ignore_status = True) 53 result = bitbake("logging-test -c pythontest_exec_func_shell -f", 62 result = bitbake("logging-test -c pythontest_exec_func_shell -f", 71 result = bitbake("logging-test -c pythontest_exec_func_shell -f -v", 81 result = bitbake("logging-test -c pythontest_exec_func_shell -f -v", 91 result = bitbake("logging-test -c pythontest_exit -f", ignore_status = True) 98 result = bitbake("logging-test -c pythontest_exit -f", ignore_status = True) [all …]
|
/openbmc/smbios-mdr/src/smbios-ipmi-blobs/ |
H A D | handler.cpp | 10 #include <phosphor-logging/log.hpp> 48 phosphor::logging::log<phosphor::logging::level::ERR>( in syncSmbiosData() 50 phosphor::logging::entry("ERROR=%s", e.what()), in syncSmbiosData() 51 phosphor::logging::entry("SERVICE=%s", mdrV2Service), in syncSmbiosData() 52 phosphor::logging::entry("PATH=%s", in syncSmbiosData() 59 phosphor::logging::log<phosphor::logging::level::ERR>( in syncSmbiosData() 133 phosphor::logging::log<phosphor::logging::level::ERR>( in write() 173 phosphor::logging::log<phosphor::logging::level::ERR>( in commit() 208 phosphor::logging::log<phosphor::logging::level::ERR>( in commit() 219 phosphor::logging::log<phosphor::logging::level::ERR>( in commit() [all …]
|
/openbmc/witherspoon-pfault-analysis/ |
H A D | elog-errors.hpp | 5 #include <phosphor-logging/elog.hpp> 6 #include <phosphor-logging/log.hpp> 90 namespace phosphor::logging namespace 108 phosphor::logging::org::open_power::witherspoon::fault::Shutdown; 120 phosphor::logging::org::open_power::witherspoon::fault::Shutdown; 139 phosphor::logging::org::open_power::witherspoon::fault::PowerOnFailure; 151 phosphor::logging::org::open_power::witherspoon::fault::PowerOnFailure; 215 using PowerSequencerVoltageFault = phosphor::logging::org::open_power:: 227 using type = phosphor::logging::org::open_power::witherspoon::fault:: 293 using PowerSequencerPGOODFault = phosphor::logging::org::open_power:: [all …]
|
/openbmc/openpower-vpd-parser/vpd-manager/src/ |
H A D | bios_handler.cpp | 31 logging::logMessage( in checkAndListenPldmService() 86 logging::logMessage("Error in reading BIOS attribute signal. "); in biosAttributesCallback() 149 logging::logMessage("Invalid typre received from BIOS table."); in biosAttributesCallback() 196 logging::logMessage( in processFieldCoreOverride() 222 logging::logMessage("Invalid type recieved for FCO from BIOS."); in processFieldCoreOverride() 226 logging::logMessage("Invalid type recieved for FCO from VPD."); in processFieldCoreOverride() 233 logging::logMessage("Invalid FCO value in BIOS. Skip updating to VPD"); in saveFcoToVpd() 247 logging::logMessage( in saveFcoToVpd() 266 logging::logMessage( in saveFcoToVpd() 274 logging::logMessage("Invalid type read for FCO from DBus."); in saveFcoToVpd() [all …]
|
/openbmc/openbmc/meta-ibm/recipes-phosphor/logging/ |
H A D | phosphor-logging_%.bbappend | 10 FILES:${PN}:append:p10bmc = " ${datadir}/phosphor-logging/pels/com.ibm.Hardware.Chassis.Model.Raini… 11 FILES:${PN}:append:p10bmc = " ${datadir}/phosphor-logging/pels/com.ibm.Hardware.Chassis.Model.Raini… 12 FILES:${PN}:append:p10bmc = " ${datadir}/phosphor-logging/pels/com.ibm.Hardware.Chassis.Model.Evere… 13 FILES:${PN}:append:p10bmc = " ${datadir}/phosphor-logging/pels/com.ibm.Hardware.Chassis.Model.Bonne… 20 install -d ${D}/${datadir}/phosphor-logging/pels 21 …dware.Chassis.Model.Rainier2U_dev_callouts.json ${D}/${datadir}/phosphor-logging/pels/com.ibm.Hard… 22 …dware.Chassis.Model.Rainier4U_dev_callouts.json ${D}/${datadir}/phosphor-logging/pels/com.ibm.Hard… 23 …ardware.Chassis.Model.Everest_dev_callouts.json ${D}/${datadir}/phosphor-logging/pels/com.ibm.Hard… 24 …ardware.Chassis.Model.Bonnell_dev_callouts.json ${D}/${datadir}/phosphor-logging/pels/com.ibm.Hard… 25 …dware.Chassis.Model.Rainier4U_dev_callouts.json ${D}/${datadir}/phosphor-logging/pels/com.ibm.Hard…
|