Nicholas Blumhardt
Nicholas Blumhardt
Collecting some notes; https://github.com/serilog/serilog-sinks-opentelemetry/pull/50 is another case where clean formatting has been implemented; the amount of code involved makes a pretty strong case for adding a core Serilog API to...
Coming back around shortly to do a `net10.0` pass, aiming to get this change in. Updating the title, as I think this only relates to `writeToProviders: true`.
Hi Matt, thanks for your message. Is the hostname being used by the health check app the same as the CN in the certificate? If not (e.g. if the health...
Hi! Instead of constructing the sink directly, use `LoggerSinkConfiguration.Wrap(..`: ```csharp var limitingSink = LoggerSinkConfiguration.Wrap( enclosed => new LimitingSink(enclosed), wt => wt.Console()); ``` This will work with all existing Serilog sinks,...
Thanks for this! I need a moment to take a closer look, will loop back as soon as I can 👍
Hi! Here's one example: https://github.com/serilog/serilog-extensions-logging/blob/dev/samples/Sample/Program.cs - HTH.
Hi! Thanks for the PR. 4.2.0 is binary compatible with the 2.8.0 API, so the most likely issue will be your build tooling failing to add an assembly binding redirect,...
Hi! The problem in your example is that you need to try reopening the file with a very permissive FileShare value (at least read and write). May be a good...
:+1: `FileShare` specifies what _other_ users of the file can do with it while you have it open.
I don't think `FlushWithoutDispose` stands a good chance of being implemented at this point; if you're really keen on this, you can use `ReloadableLogger` from _Serilog.Extensions.Hosting_: https://github.com/serilog/serilog-extensions-hosting/blob/dev/src/Serilog.Extensions.Hosting/Extensions/Hosting/ReloadableLogger.cs You can flush...