diff options
Diffstat (limited to 'src/logger/phosphor.cpp')
-rw-r--r-- | src/logger/phosphor.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/logger/phosphor.cpp b/src/logger/phosphor.cpp new file mode 100644 index 0000000..d3c81b0 --- /dev/null +++ b/src/logger/phosphor.cpp @@ -0,0 +1,15 @@ +#include <phosphor-logging/elog-errors.hpp> +#include <phosphor-logging/elog.hpp> +#include <xyz/openbmc_project/Common/error.hpp> + +#include "phosphor.hpp" + +namespace smtp::logger +{ + void Phosphor::LogError( std::string const& message ) const + { + using InternalFailure = + sdbusplus::xyz::openbmc_project::Common::Error::InternalFailure; + phosphor::logging::commit<InternalFailure>(message); + } +}
\ No newline at end of file |