aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-11-27 14:28:54 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-11-29 19:13:56 +0200
commit013921782b1a8506f4aee1d1be0312002eddd575 (patch)
tree97197f6e57fe80241d5a51ad5326384a7d732c4c
parentc449e5f20ac25ead5288e0b63a69db53cdaba9ca (diff)
downloadminetest-013921782b1a8506f4aee1d1be0312002eddd575.tar.gz
minetest-013921782b1a8506f4aee1d1be0312002eddd575.tar.bz2
minetest-013921782b1a8506f4aee1d1be0312002eddd575.zip
Add a third log output interface method
-rw-r--r--src/log.cpp1
-rw-r--r--src/log.h2
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);
}
}
diff --git a/src/log.h b/src/log.h
index 1d087429c..afbce57e9 100644
--- a/src/log.h
+++ b/src/log.h
@@ -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){};
};