/Serilog.Sinks.Unity3D

Serilog Sink for unity 3D Debug log

Primary LanguageC#MIT LicenseMIT

Serilog.Sinks.Unity3D

openupm

Serilog sink for Unity3D, logs to Unity Debugger

Usage

Install it through OpenUPM or use the Unitypackage from the Releases.

openupm add com.serilog.sinks.unity3d

Place Serilog.dll to your assets folder, then use the library:

var logger = new LoggerConfiguration()
    .MinimumLevel.Information()
    .WriteTo.Unity3D()
    .CreateLogger();

For versions before 2.0.0

Set up MainThreadDispatcher.Unity

Upgrade from 1.0.0 to 1.0.1

You need to provide the following dlls:

  • Serilog
  • MainThreadDispatcher