feature: SimpleLogger class implementation

- add SimpleLogger class
- add LogLevel enum and current_log_level which serve to show only logs with level > to it
- add trace, debug, info, warning, error functions and their abbreviate form
- add _print function which is in charge to print the message
- the message can have timestamp and type being showed before the message [<type>  ][<timestamp>]: <message>
- add the possibility to let specify a file where to save the file in append mode
This commit is contained in:
2025-12-21 18:44:38 +01:00
parent adad3e2264
commit 8c1a97a6b9
4 changed files with 229 additions and 1 deletions

7
plugin.cfg Normal file
View File

@@ -0,0 +1,7 @@
[plugin]
name="Logger"
description="A simple godot 4 logger"
author="Arctia"
version="0.1.0"
script="logger.gd"