blob: e5269d1f8af9c5a99d81cc1a3d143295e52afacf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#pragma once
#include <phosphor-logging/log.hpp>
namespace phosphor
{
namespace dbus
{
namespace monitoring
{
namespace action
{
using namespace phosphor::logging;
/**
* @brief An action to log an error with the given message
*
* @param[in] msg - The message to log
*
* @return Lambda function
* A lambda function to perform the log_error function
*/
inline auto log_error(const char* msg)
{
return [=](auto&, auto&)
{
log<level::ERR>(msg);
};
}
} // namespace action
} // namespace monitoring
} // namespace dbus
} // namespace phosphor
|