aragubas.taiyou.simplelog 2.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package aragubas.taiyou.simplelog --version 2.0.0
                    
NuGet\Install-Package aragubas.taiyou.simplelog -Version 2.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="aragubas.taiyou.simplelog" Version="2.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="aragubas.taiyou.simplelog" Version="2.0.0" />
                    
Directory.Packages.props
<PackageReference Include="aragubas.taiyou.simplelog" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add aragubas.taiyou.simplelog --version 2.0.0
                    
#r "nuget: aragubas.taiyou.simplelog, 2.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package aragubas.taiyou.simplelog@2.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=aragubas.taiyou.simplelog&version=2.0.0
                    
Install as a Cake Addin
#tool nuget:?package=aragubas.taiyou.simplelog&version=2.0.0
                    
Install as a Cake Tool

Taiyou Simple Log

A simple, configurable and elegant logging library for Godot 4.* C# projects!

By using C#'s compiler definitions, you can configure TaiyouSimpleLog to do exactly what you want without any additional runtime costs!

TaiyouSimpleLog supports projects with and without Reflection (useful for Web/iOS/Android builds)

Example

By default, TaiyouLog is configured with Reflection enabled, 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 terminal

Customization

TaiyouSimpleLog has 5 compiler definitions that can be set:

  1. TAIYOULOG_NO_REFLECTION
  2. TAIYOULOG_NO_COLOR_MESSAGE
  3. TAIYOULOG_PRINTRICH
  4. TAIYOULOG_WARNING_PRINTRICH
  5. TAIYOULOG_ERROR_PRINTRICH

TAIYOULOG_NO_REFLECTION

If set, any code that uses reflection will be disabled. Since TaiyouSimpleLog fetches the classname and methodname using Reflection, it will require you to manually set the ClassName and MethodName using the methodName and className parameters.

TAIYOULOG_NO_COLOR_MESSAGE

If set, disables coloring the message segment from log output

TAIYOULOG_PRINTRICH

If set, enables PrintRich for Warnings and Errors. PrintRich will make errors and warnings not be logged into Godot's built in debugger, and instead on the Output window/OS Terminal.

TAIYOULOG_(WARNING/ERROR)_PRINTRICH

If set, enables PrintRich for either Warning or Error, available as two compiler definitions

  1. TAIYOULOG_WARNING_PRINTRICH
  2. TAIYOULOG_ERROR_PRINTRICH

Changing colors

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

  1. DebugColor
  2. WarningColor
  3. ErrorColor

Methods for restoring the default color is also available

  1. ResetDebugColor()
  2. ResetWarningColor()
  3. ResetErrorColor()

Example

Changing the color of a debug output to blue, and then restoring it back

Log.DebugColor = "blue"; // Must be color codes accepted by Godot's PrintRich method
Log.Debug("Debug! but in blue");
Log.ResetDebugColor(); // Resets to the default color, hardcoded in the class

Donations

If 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)

License

This project has been licensed with the MIT license.

More information at LICENSE.txt

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.0.1 103 9/25/2025
2.0.0 101 9/25/2025
1.0.5 105 9/23/2025