A simple, configurable and elegant logging library for Godot 4.* C# projects!
By using static boolean variables, you can configure TaiyouSimpleLog to do behave how you want
TaiyouSimpleLog supports projects with and without Reflection (useful for Web/iOS/Android builds)
By default, TaiyouLog is configured, Color Messages and PrintRich disabled
Log.Debug(""); // Logs message into OS terminal and Godot's built in output
Log.Warning(""); // Logs message into Godot's built in debugger (if PrintRich is disabled) and OS terminal
Log.Error(""); // Logs message into Godot's built in debugger (if PrintRich is disabled) and OS terminalTaiyouSimpleLog has 7 static variables that can be changed:
- NoColorMessages
- PrintRich
- PrintRichWarning
- PrintRichError
- DebugColor
- WarningColor
- ErrorColor
And 3 methods for resetting the colors to it's defaults
- ResetDebugColor
- ResetWarningColor
- ResetErrorColor
If enabled, the message part from the log output will not be colored
If enabled, Warning and Error messages will not be logged into Godot's internal debugger, but rather on the OS's terminal/Godot's Output Window
If enabled, Warning/Error messages will not be logged into Godot's internal debugger, but rather on the OS's terminal/Godot's Output Window
You can also change the color set for Debug, Error and Warning (if PrintRich is enabled) by changing the respective variables in the Log.cs class
- DebugColor
- WarningColor
- ErrorColor
Methods for restoring the default color is also available
- ResetDebugColor()
- ResetWarningColor()
- ResetErrorColor()
Changing the color of a debug output to blue, and then restoring it back
Log.DebugColor = "#0000FF"; // Must be hexadecimal color codes
Log.Debug("Debug! but in blue");
Log.ResetDebugColor(); // Resets to the default color, hardcoded in the classIf you like what you see and wants to help us develop more useful libraries, check out my funding platforms below!
Kofi (https://ko-fi.com/aragubas)
This project has been licensed with the MIT license.
More information at LICENSE.txt