JohnoRobson / GodotBattleRoyal

Other
3 stars 1 forks source link

Got a basic logger script and replaced the existing print statements with logger calls #43

Closed JohnoRobson closed 1 month ago

JohnoRobson commented 2 months ago

This adds a basic logger script that is autoloaded. The logging levels are as follows, from most granular to least:

  1. TRACE
  2. INFO
  3. WARN
  4. ERROR Where TRACE is intended for debugging small parts of the program, and ERROR is for large issues, such as a critical class instance not being present. The logger's printing level can be changed at any time by calling Logger.logging_level = Logger.LoggingLevel.{logging level goes here}