diff options
-rw-r--r-- | src/log.cpp | 1 | ||||
-rw-r--r-- | src/log.h | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/log.cpp b/src/log.cpp index 188b9b679..579831096 100644 --- a/src/log.cpp +++ b/src/log.cpp @@ -100,6 +100,7 @@ void log_printline(enum LogMessageLevel lev, const std::string &text) i != log_outputs[lev].end(); i++){ ILogOutput *out = *i; out->printLog(os.str()); + out->printLog(os.str(), lev); out->printLog(lev, text); } } @@ -41,6 +41,8 @@ class ILogOutput public: /* line: Full line with timestamp, level and thread */ virtual void printLog(const std::string &line){}; + /* line: Full line with timestamp, level and thread */ + virtual void printLog(const std::string &line, enum LogMessageLevel lev){}; /* line: Only actual printed text */ virtual void printLog(enum LogMessageLevel lev, const std::string &line){}; }; |