| Matthew Barth | b86374d | 2017-04-12 10:57:19 -0500 | [diff] [blame^] | 1 | #pragma once |
| 2 | |||||
| 3 | #include <phosphor-logging/log.hpp> | ||||
| 4 | |||||
| 5 | namespace phosphor | ||||
| 6 | { | ||||
| 7 | namespace dbus | ||||
| 8 | { | ||||
| 9 | namespace monitoring | ||||
| 10 | { | ||||
| 11 | namespace action | ||||
| 12 | { | ||||
| 13 | |||||
| 14 | using namespace phosphor::logging; | ||||
| 15 | |||||
| 16 | inline auto log_error(const char* msg) | ||||
| 17 | { | ||||
| 18 | return [=](auto&, auto&) | ||||
| 19 | { | ||||
| 20 | log<level::ERR>(msg); | ||||
| 21 | }; | ||||
| 22 | } | ||||
| 23 | |||||
| 24 | } // namespace action | ||||
| 25 | } // namespace monitoring | ||||
| 26 | } // namespace dbus | ||||
| 27 | } // namespace phosphor | ||||