- Fix definitions.
- Do not print error log as std err.
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
// Use of this source code is governed by a apache 2.0 license that can be
// found in the LICENSE file.
-#ifndef LOGGING_H_
-#define LOGGING_H_
+#ifndef LOGGING_HH_
+#define LOGGING_HH_
#include <dlog.h>
const std::string& logstr) override {
dlog_print(LogLevelToPriority(level), tag.c_str(), "%s",
Escape(logstr).c_str());
-
- if (level == LogLevel::LOG_ERROR)
- std::cerr << logstr << std::endl;
}
private:
<< (std::string(__FILENAME__) + ":" + std::to_string(__LINE__)).c_str() \
<< std::setw(0) << " : " \
-#endif // MANIFEST_PARSER_UTILS_LOGGING_H_
+#endif // LOGGING_HH_