summaryrefslogtreecommitdiffstats
path: root/src/actions.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/actions.hpp')
-rw-r--r--src/actions.hpp27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/actions.hpp b/src/actions.hpp
new file mode 100644
index 0000000..e1f53ad
--- /dev/null
+++ b/src/actions.hpp
@@ -0,0 +1,27 @@
+#pragma once
+
+#include <phosphor-logging/log.hpp>
+
+namespace phosphor
+{
+namespace dbus
+{
+namespace monitoring
+{
+namespace action
+{
+
+using namespace phosphor::logging;
+
+inline auto log_error(const char* msg)
+{
+ return [=](auto&, auto&)
+ {
+ log<level::ERR>(msg);
+ };
+}
+
+} // namespace action
+} // namespace monitoring
+} // namespace dbus
+} // namespace phosphor
OpenPOWER on IntegriCloud