Description
Changelog
Reviews (0)

eLogger

High-performance structured logging for Godot .NET, powered by ZLogger.

⚠️ Requires ePlugin. eLogger is built on the ePlugin Framework, which is a separate download. Install and enable ePlugin first. Without it, eLogger can't be enabled and its ZLogger packages aren't installed.

eLogger integrates ZLogger with Godot to provide fast, zero-allocation text and structured logging through the standard Microsoft.Extensions.Logging API.

Log entries go to Godot's Output panel and Debugger. Native Godot errors, warnings and GD.Print output are fed back into ZLogger, so application and engine messages reach the same sinks, such as a file or JSON output.

Features

  • Zero-allocation structured logging with ZLogger 2.6
  • Integration with Microsoft.Extensions.Logging
  • Godot-aware log routing:
    • Trace, Debug and Information → Output panel
    • Warning → Debugger warnings
    • Error and Critical → Debugger errors
  • Captures native engine, script and shader errors and GD.Print output, logged under the categories Godot.Engine, Godot.Script, Godot.Shader and Godot.Output, so standard filters apply
  • Readable exception stack traces with res:// paths and line numbers, async methods shown by their own names, and inner exceptions included
  • Messages carry the emitting node's instance ID (or (#freed) once it has been freed)
  • ePlugin's own log messages go through ZLogger as well
  • The ZLogger and ZString NuGet packages are added automatically when you enable the plugin and removed when you disable it
  • Updates are offered in the ePlugin Manager

Requirements

  • ePlugin (required, separate download), tested with v0.13.0
  • Godot 4.5 or newer, .NET edition
  • .NET 8 SDK

Tested against Godot 4.5.0 and 4.7.2 .NET; targets net8.0.

Installation

  1. Install ePlugin from the Asset Store.
  2. Install eLogger. Both end up in your project's addons directory.
  3. Enable ePlugin, then eLogger, under Project → Project Settings → Plugins.

Enabling eLogger adds the ZLogger and ZString packages to your project and shows a short welcome page. ePlugin only runs in the editor, so your exported game doesn't depend on it at runtime.

Example

Create the logger factory in an autoload so it lives as long as your game logs:

using Godot;
using Microsoft.Extensions.Logging;
using ZLogger;
using Enaweg.Logger;

public partial class Logging : Node { public static ILoggerFactory Factory { get; private set; } = null!;

public override void _EnterTree()
{
    Factory = LoggerFactory.Create(logging =>
    {
        logging.SetMinimumLevel(LogLevel.Trace);
        logging.AddZLoggerGodotDebug();
    });
}

public override void _ExitTree() => Factory.Dispose();

}

Then log from anywhere:

var logger = Logging.Factory.CreateLogger("MyGame");
logger.ZLogInformation($"Player spawned at {position}");

Don't create the factory with using var inside _Ready. Disposing the factory also stops engine messages from reaching ZLogger.

Status

eLogger is experimental and under active development. Documentation, bug reports and pull requests are welcome on GitHub.

License

MIT License

Changelog for version v0.6.0

2026-11-07 14:49:49

No changelog provided for this version.

Reviews

eLogger has no reviews yet.

Login to write a review.

Consider supporting the creators!

If you enjoyed this asset consider supporting its creator. Follow the link below.