{"repo":"russmatney/log.gd","free":true,"listed":false,"github":"https://github.com/russmatney/log.gd","clone":"git clone https://github.com/russmatney/log.gd.git","description":"An ergonomic pretty-printer for gdscript","language":"GDScript","stars":128,"topics":["gdscript","godot","log","pretty","print"],"license":"MIT","category":"game-templates","readme_excerpt":"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. 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(...) is a prints(...) replacement (includes spaces between args) - Log.prn(...) , Log.prnn(...) , and Log.prnnn(...) are the same, but include limited newlines + tabs when printing nested arrays and dictionaries - Both add prefix with the calling filename and line number (e.g. [Player:34] ) - Both color the output values based on the value's type - Log.debug(...) , Log.info(...) , Log.warn(...) , Log.error(...) offer differing log levels Links - Docs - Installation - Features - Public API - Settings - Implementation - Log.gd on the Godot Asset Library - Color Constants Cheatsheet 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 gdlo","default_branch":null,"files":null,"tree":[],"storefront":"/r/russmatney","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/russmatney/log.gd/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}