Upgrading to 5.2 from 5.1 breaks use in Blazor WebAssembly
See original GitHub issueDowngrading fixed the issue.
The Chrome console reports:
System.PlatformNotSupportedException: Operation is not supported on this platform.
at System.Net.Http.SocketsHttpHandler.set_PooledConnectionLifetime(TimeSpan value)
at Serilog.Sinks.Seq.Http.SeqIngestionApiClient…ctor(String serverUrl, String apiKey, HttpMessageHandler messageHandler)
at Serilog.SeqLoggerConfigurationExtensions.Seq(LoggerSinkConfiguration loggerSinkConfiguration, String serverUrl, LogEventLevel restrictedToMinimumLevel, Int32 batchPostingLimit, Nullable1 period, String apiKey, String bufferBaseFilename, Nullable
1 bufferSizeLimitBytes, Nullable1 eventBodyLimitBytes, LoggingLevelSwitch controlLevelSwitch, HttpMessageHandler messageHandler, Nullable
1 retainedInvalidPayloadsLimitBytes, Int32 queueSizeLimit)
Log.Logger = new LoggerConfiguration() .MinimumLevel.Override("Microsoft", LogEventLevel.Information) .Enrich.FromLogContext() .Enrich.WithProperty("Domain", "PersonalFinance") .Enrich.WithProperty("App", "Web") //.WriteTo.BrowserConsole() // this one causes Json errors (null value) //.WriteTo.Debug() .WriteTo.Seq("http://****.org:5341") .CreateLogger();
Issue Analytics
- State:
- Created a year ago
- Comments:11 (4 by maintainers)
Top GitHub Comments
Thanks @vincentnl, We have reproduced the error. Now we just need to fix it. 😃
Thanks for checking it out again @vincentnl . I’ve had another attempt and verified with a sample project in:
https://github.com/datalust/serilog-sinks-seq/pull/191
I’ll let you know here as soon as there’s a published build available. Thanks again!