Nicholas Blumhardt

Results 927 comments of Nicholas Blumhardt

Good question; it's because the file sink uses this code for formatting, while the console sink (which supports theming) doesn't 👍

(It's pulled in here: https://github.com/serilog/serilog-sinks-file/blob/dev/src/Serilog.Sinks.File/FileLoggerConfigurationExtensions.cs#L271)

Thanks for digging in! I don't think it's necessarily a bug, but it's also not really optimal. `IFormattable` items might not have been taken into account when deciding how to...

Hi @alekdavis; the `"outputTemplate"` option uses the old/built-in formatting logic. If you switched that over to `"formatter"` you could use a _Serilog.Expressions_ template, and those use newer formatting. Here's an...

Hi @VictorioBerra! I don't think any work's been done on this. Configuration is in a bit of an awkward spot right now, with most energy going into the _Microsoft.Extensions.Configuration_ integration,...

> Once host completes disposal it will terminate process in parallel most of time not reaching that line of code. I haven't observed this - any pointer to where it's...

Thanks for the note. I think you're looking for Serilog.Sinks.Async: https://github.com/serilog/serilog-sinks-async, this isn't (yet) baked into the Serilog package, but it implements backgrounding of arbitrary sinks like this one. HTH!

Thanks for the suggestion 👍

G'day Wayne - I think you want to `ConfigureLogging()` (instead of adding Serilog directly to `services`) in this case: ```csharp .ConfigureLogging((hostingContext, logging) => { logging.AddSerilog(); }) ```

Hmm interesting --- any chance you can spot a difference between the messages that make it through the Serilog provider, and the ones that hit the console? I'm unfortunately not...