summaryrefslogtreecommitdiffstats
path: root/src/elog.cpp
diff options
context:
space:
mode:
authorGunnar Mills <gmills@us.ibm.com>2017-08-03 15:54:43 -0500
committerGunnar Mills <gmills@us.ibm.com>2017-08-21 14:26:22 +0000
commit9679d43ea9a0d2ed89c8eb88851eee838a3e767c (patch)
tree024788674bebd6a77dbc5053a90ce0d93f6e4d77 /src/elog.cpp
parent2df09e242d6dd5961d831bd179f73489eba526ed (diff)
downloadphosphor-dbus-monitor-9679d43ea9a0d2ed89c8eb88851eee838a3e767c.tar.gz
phosphor-dbus-monitor-9679d43ea9a0d2ed89c8eb88851eee838a3e767c.zip
Create new Elog class
Created new Elog callback, which will create an error log. This is just the base, more to come. Change-Id: I50c12c8bff0942b5cb027e38d0cc8691e8a241b4 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
Diffstat (limited to 'src/elog.cpp')
-rw-r--r--src/elog.cpp33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/elog.cpp b/src/elog.cpp
new file mode 100644
index 0000000..9f937c3
--- /dev/null
+++ b/src/elog.cpp
@@ -0,0 +1,33 @@
+/**
+ * Copyright © 2017 IBM Corporation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+#include "elog.hpp"
+
+namespace phosphor
+{
+namespace dbus
+{
+namespace monitoring
+{
+
+void ElogBase::operator()()
+{
+ log();
+}
+
+
+} // namespace monitoring
+} // namespace dbus
+} // namespace phosphor
OpenPOWER on IntegriCloud