Serilog sink for Unity3D, logs to Unity Debugger
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();
Set up MainThreadDispatcher.Unity
You need to provide the following dlls:
- Serilog
- MainThreadDispatcher