From 3a86b9dbe2c98c32f08942b07354a0361e8bafdb Mon Sep 17 00:00:00 2001 From: Benjamin Paassen Date: Fri, 12 Dec 2014 11:30:46 +0100 Subject: Slight changes to logging mechanism. --- src/core/common/Logger.hpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/core/common/Logger.hpp') diff --git a/src/core/common/Logger.hpp b/src/core/common/Logger.hpp index be82ea0..6604756 100644 --- a/src/core/common/Logger.hpp +++ b/src/core/common/Logger.hpp @@ -257,7 +257,7 @@ public: * context information. */ template - void logAt(Severity severity, std::string msg, PosType &pos) + void log(Severity severity, std::string msg, PosType &pos) { log(severity, std::move(msg), pos.getPosition(), pos.getContext()); } @@ -291,7 +291,7 @@ public: void debug(std::string msg, PosType &pos) { #ifndef NDEBUG - logAt(Severity::DEBUG, std::move(msg), pos); + log(Severity::DEBUG, std::move(msg), pos); #endif } @@ -319,7 +319,7 @@ public: template void note(std::string msg, PosType &pos) { - logAt(Severity::NOTE, std::move(msg), pos); + log(Severity::NOTE, std::move(msg), pos); } /** @@ -346,7 +346,7 @@ public: template void warning(std::string msg, PosType &pos) { - logAt(Severity::WARNING, std::move(msg), pos); + log(Severity::WARNING, std::move(msg), pos); } /** @@ -373,7 +373,7 @@ public: template void error(std::string msg, PosType &pos) { - logAt(Severity::ERROR, std::move(msg), pos); + log(Severity::ERROR, std::move(msg), pos); } /** @@ -401,7 +401,7 @@ public: template void fatalError(std::string msg, PosType &pos) { - logAt(Severity::FATAL_ERROR, std::move(msg), pos); + log(Severity::FATAL_ERROR, std::move(msg), pos); } /** -- cgit v1.2.3