Debugging Tip!

Super helpful when testing scripts. USE the logger! and use it often.

When you’re logging out things change the log_level to be a warning so that it highlights as yellow in the logs and is easy to find! :slight_smile:

 Logger.Print("ELIMS-TO-WIN: {EliminationsToWin}", ?Level := log_level.Warning)

This works too!

 Print("ELIMS-TO-WIN: {EliminationsToWin}", ?Duration := 10.0, ?Color:=Red)
7 Likes

Yes! Customizing your log outputs is a good way to create a record of your code’s execution. I’ve used all sorts of text to help me trace a program’s execution. Using a line of equals to separate calls

================================================================

just like that. :slight_smile:

Awesome tip indeed!

Many thanks, I was unsure how to pass log_level to this.