
Publisher
russmatney
Log.gd, a GDScript pretty-printer
Log.gd provides alternatives to print(...)
that colorizes the output and prepends a source file and line-number based on the call-site. - Log.pr(...)
- pretty print args in one line - Log.prn(...)
- the same, but with newlines and tabs when printing Arrays/Dictionaries - Log.warn(...)
- pretty-print AND push a warning via push_warning
- Log.err(...)
- pretty-print AND push a error via push_error
This makes your printed output is much more readable! Full docs here: https://russma...
This plugin has been mirrored from the Godot Asset Library.
The plugin author is in no way affiliated with Gadget.
If you are the author of this plugin and would like this mirror removed, please contact support@gadgetgodot.com.
Log.gd, a Godot pretty printer
Available on the Godot Asset Library and Github.
I gave a Lightning talk about this addon at Godot Con Boston! Here are the slides. Video link to come soon!
Log.gd provides a drop-in replacement for GDScript's print(...)
function.
It colors the output based on the value passed in, and adds a prefix based on the call-site's file and line number.
This makes Godot's Output
buffer much more readable! And now, I can't live without it :eyeroll:
TLDR
Log.pr(...)
-print(...)
replacement (also adds spaces between args)Log.prn(...)
- the same, but include newlines + tabs when printing arrays/dictionaries
Links
Other Godot Loggers
There are some other great printers/loggers with a variety of features - check them out!
- gg.print
- Loggie
- LogFox - comparing values across runs
- GoLogger - more production/release angled
- https://github.com/ClumsyInker/godot-editor-log-highlighter
- https://github.com/albinaask/Log
- https://gitlab.com/godot-stuff/gs-logger
- https://github.com/JohnDevlopment/godot-jlogger
- https://github.com/raldone01/godot_addon_gdlogging_assetlib
- https://codeberg.org/Taffer/godot-logger
- https://github.com/DawnGroveStudios/GodotLogger
- https://github.com/ZeeWeasel/LogDuck
- https://github.com/DaviD4Chirino/Awesome-Debug-Log