From 9679d43ea9a0d2ed89c8eb88851eee838a3e767c Mon Sep 17 00:00:00 2001 From: Gunnar Mills Date: Thu, 3 Aug 2017 15:54:43 -0500 Subject: 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 --- src/elog.cpp | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 src/elog.cpp (limited to 'src/elog.cpp') 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 -- cgit v1.2.1