
Publisher
alexvalder
BloodyLogger
Simple extensible logger for Godot 4.x. Comes with default console writer and error file writer with max log size limitation.
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.
BloodyLogger
Simple extensible logger for Godot 4.x
Usage
Note: You should add addons/bloody_logger/logger.gd
as Autoload
Somewhere in your project you should setup loggers like this:
# logger.gd is autoloaded as "Logger"
Logger.add_writer(BloodyLogger.default_console_writer())
Logger.add_writer(BloodyLogger.default_error_file_writer())
This snippet above is more than enough for basic funcitonality. If default writers aren't enough, you can create your own.
Custom writers
To create your own writer, you should:
- extend
Writer
class - override
write(int, String)
andwrite_stack(int, String)
functions
Please note, that you despite of presence of _filter(int)
function, you should call it your custom overrides manually.
Gallery