Page 1 of 1

Add second parameter in IGame.WriteToConsole() to filter log

Posted: Sat Mar 21, 2020 5:39 pm
by NearHuscarl
I'd like to have a way to filter logging. Currently the log is very hard to read ('Cant find effect hit' or sth spams all the screen I cant read my log message). I can only analyze the log from SFD Map Debug window which only exists in the Map Editor

Code: Select all

Game.WriteToConsole(string message, LogLevel level)

enum LogLevel
{
   Verbose, // include logging from the core game, set to Info or above to disable messages like 'Cant find effect hit'
   Info,
   Warning,
   Error,
}

IGame.SetLogLevel(LogLevel level);