This forum is going to be locked at the end of this year and eventually going offline. If you have feedback to share you can find us in our Discord channel "MythoLogic Interactive" https://discord.gg/nECKnbT7gk

Make sure to read the rules.

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

Give us your input on how we may improve the ScriptAPI in the game in future versions.
Forum rules
By using the forum you agree to the following rules.
Post Reply
NearHuscarl
Superfighter
Superfighter
Posts: 97
Joined: Thu Feb 07, 2019 4:36 am

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

Post by NearHuscarl » Sat Mar 21, 2020 5:39 pm

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);
0 x
Image

Post Reply