forked from Mirrorlandia_minetest/minetest
Add a third log output interface method
This commit is contained in:
parent
c449e5f20a
commit
013921782b
@ -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){};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user