blob: a5ebe0415570a9524bcbd52556912a76d9facb7f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#include <phosphor-logging/lg2.hpp>
#include "phosphor.hpp"
namespace smtp::logger
{
void Phosphor::LogError( std::string const& method, std::string const& message ) const
{
auto join_message = method + ',' + message;
const auto* msg = "OpenBMC.0.1.SMTPError";
lg2::error("SMTP error", "REDFISH_MESSAGE_ID", msg, "REDFISH_MESSAGE_ARGS", join_message);
}
void Phosphor::LogOk( std::string const& message ) const
{
const auto* msg = "OpenBMC.0.1.SMTPOk";
lg2::error("SMTP event", "REDFISH_MESSAGE_ID", msg, "REDFISH_MESSAGE_ARGS", message);
}
}
|