colorize log messages written to console correspondingly to severity of

the message
This commit is contained in:
2020-01-24 14:57:20 +04:00
parent f48bf41cbb
commit fdad3480f9
3 changed files with 30 additions and 6 deletions
+1 -1
View File
@@ -83,7 +83,7 @@ public:
protected:
inline virtual void SendMessage(const char* msg)
inline virtual void SendMessage(const char* msg, SC_LogSeverity severity = SEVERITY_DEBUG)
{
if(mFile && mBytesCount < mMaxFileSize) {
if(fputs(msg, mFile) >= 0) {