Dear forum users! In compliance with the new European GDPR regulations, we'd just like to inform you that if you have an account, your email address is stored in our database. We do not share your information with third parties, and your email address and password are encrypted for security reasons.

New to the forum? Say hello in this topic! Also 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
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'

IGame.SetLogLevel(LogLevel level);
0 x

Post Reply