Added a pretty-printing debug logger
A new feature has been added to the codebase, which is a pretty-printing debug logger. This logger colorizes printed data based on datatype and handles nested data structures such as Arrays and Dictionaries. It also prefixes logs with the callsite's source file for easy tracking. The logger supports opt-in to pretty printing via duck-typing by implementing a `to_printable()` method on the object.
This commit is contained in:
parent
3fa6393643
commit
052dc00039
3 changed files with 501 additions and 0 deletions
3
addons/log/plugin.gd
Normal file
3
addons/log/plugin.gd
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
@tool
|
||||
extends EditorPlugin
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue