Check out our latest project ✨ OpenChapter.io: free ebooks the way its meant to be 📖

GodotSharpLog

An asset by luckyfeng
The page banner background of a mountain and forest
GodotSharpLog thumbnail image
GodotSharpLog thumbnail image
GodotSharpLog hero image

Quick Information

0 ratings
GodotSharpLog icon image
luckyfeng
GodotSharpLog

GodotSharpLog is a logging tool designed for Godot C#, aiming to help developers manage log information more conveniently in different scenarios.

Supported Engine Version
4.4
Version String
0.1.1
License Version
MIT
Support Level
community
Modified Date
26 days ago
Git URL
Issue URL

English | 中文

GodotSharpLog

GodotSharpLog is a logging tool designed for Godot C#, aiming to help developers manage log information more conveniently in different scenarios.

Features

  • Native Output: Supports outputting log information to Godot's output and debugger panels.
  • File Logging: Supports writing log information to files.
  • Built-in Logging: Provides runtime logging and a runtime visual log interface.

Usage Example

init log agents in your project's main scene

var fileLogAgent = new FileLogAgent(); // File Logging
fileLogAgent.Cleanup(2); // Keep 2 log files, delete the rest
GLog.AddAgent(fileLogAgent);

if (EngineDebugger.IsActive())
{
    var debuggerLogAgent = new DebuggerLogAgent(); // Output log information to Godot's debugger panel
    GLog.AddAgent(debuggerLogAgent);
}
else
{
    var godotLogAgent = new GodotLogAgent(); // Output log information to Godot's output panel
    GLog.AddAgent(godotLogAgent);
}

var builtinLogAgent = new BuiltinLogAgent(); // Built-in Logging
GLog.AddAgent(builtinLogAgent);

GLog.Info("info message", "Sample");
GLog.Warn("warn message", "Sample");
GLog.Error("error message", "Sample");
GLog.Exception(new Exception("exception message"), "Sample");

GodotSharpLog is a logging tool designed for Godot C#, aiming to help developers manage log information more conveniently in different scenarios.

Reviews

0 ratings

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

0 ratings
GodotSharpLog icon image
luckyfeng
GodotSharpLog

GodotSharpLog is a logging tool designed for Godot C#, aiming to help developers manage log information more conveniently in different scenarios.

Supported Engine Version
4.4
Version String
0.1.1
License Version
MIT
Support Level
community
Modified Date
26 days ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers