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.
14 lines
412 B
INI
14 lines
412 B
INI
[plugin]
|
|
|
|
name="Log.gd"
|
|
description="A pretty-printing debug logger.
|
|
|
|
Log.pr(\"some str\", some_object)
|
|
|
|
- Colorizes printed data based on datatype
|
|
- Handles nested data structures (Arrays and Dictionaries)
|
|
- Prefixes logs with the callsite's source file
|
|
- Opt-in to pretty printing via duck-typing (implement a `to_printable()` method on the object)"
|
|
author="Russell Matney"
|
|
version="v0.0.5"
|
|
script="plugin.gd"
|