Introduce the LuaCsLogger class and make everything use that instead
This commit is contained in:
@@ -106,14 +106,17 @@ namespace Barotrauma.Networking
|
||||
}
|
||||
}
|
||||
|
||||
public void WriteLine(string line, MessageType messageType)
|
||||
public void WriteLine(string line, MessageType messageType, bool logToConsole = true)
|
||||
{
|
||||
//string logLine = "[" + DateTime.Now.ToLongTimeString() + "] " + line;
|
||||
|
||||
var newText = new LogMessage(line, messageType);
|
||||
|
||||
#if SERVER
|
||||
DebugConsole.NewMessage(newText.Text.SanitizedValue, messageColor[messageType]); //TODO: REMOVE
|
||||
if (logToConsole)
|
||||
{
|
||||
DebugConsole.NewMessage(newText.Text.SanitizedValue, messageColor[messageType]); //TODO: REMOVE
|
||||
}
|
||||
#endif
|
||||
|
||||
lines.Enqueue(newText);
|
||||
|
||||
Reference in New Issue
Block a user