Nicholas Blumhardt
Nicholas Blumhardt
Thanks! It's in https://github.com/serilog/serilog/blob/dev/src/Serilog/Core/Sinks/Batching/BatchingSink.cs#L104, which this sink uses via https://github.com/datalust/serilog-sinks-seq/blob/dev/src/Serilog.Sinks.Seq/Sinks/Seq/Batched/BatchedSeqSink.cs
Hi! That's the tricky part, and why I think it'd need to be built as a separate implementation for the time being :+1: Since determining the event's size depends on...
:+1: either that, or copy the batching code from Serilog into the Seq sink and modify it there (using this instead of Serilog's native batching). I'm not so keen on...
Makes sense, thanks :+1:
Hi @brgrz, There isn't a feature like this available, Serilog doesn't always render messages so it doesn't really fit with the API. Creating your own `public static string LogAndFormat(string messageTemplate,...
Looking again, your extension method would need to use `ILogger.BindMessageTemplate()` and `MessageTemplate.Render()` to produce the returned string. The resulting `MessageTemplate` and properties could then be used to construct a `LogEvent`...
If you're not looking to use the Serilog API in the solution, this is probably a question for the Microsoft.Extensions.Logging maintainers, since that's where the .NET `ILogger` interface is defined,...
Closing as I don't think there's anything we can add here to make this work via MEL, but if you still need a hand with any of the Serilog APIs...
I've merged https://github.com/serilog/serilog-sinks-email/pull/148 to get build scripts and dependencies up-to-date, if someone can verify that 4.1.0-dev-* (now on nuget.org) works satisfactorily in their project, I'll ship an RTM. Thanks!
Thanks, @romovs 👍