serilog-sinks-periodicbatching icon indicating copy to clipboard operation
serilog-sinks-periodicbatching copied to clipboard

Are there any plans to support Blazor WASM projects?

Open uhfath opened this issue 9 months ago • 8 comments

In it's current state (4.1.0) there is an exception inside Dispose(bool disposing) method: https://github.com/serilog/serilog-sinks-periodicbatching/blob/d7b0406169671d55dc34cee97eedc72c137fcff0/src/Serilog.Sinks.PeriodicBatching/Sinks/PeriodicBatching/PeriodicBatchingSink.cs#L331-L355

This line: https://github.com/serilog/serilog-sinks-periodicbatching/blob/d7b0406169671d55dc34cee97eedc72c137fcff0/src/Serilog.Sinks.PeriodicBatching/Sinks/PeriodicBatching/PeriodicBatchingSink.cs#L339

Causes this:

PeriodicBatchingSink (Serilog.Sinks.Seq.Batched.BatchedSeqSink): caught exception during disposal
System.PlatformNotSupportedException: Cannot wait on monitors on this runtime.

This exception is output in Serilog's self log (when enabled). In our project we wanted to use serilog-sinks-seq or serilog-sinks-http sinks to send logs to Seq server directly from browser, but they both depend on this project and both fail on this.

Just wanted to know if there are any plans to somehow workaround WASM limitations?

uhfath avatar May 13 '24 12:05 uhfath