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

BatchingOptions not working

Open dvRox84 opened this issue 10 months ago • 0 comments

Package version 4.0.0

This is a piece of my appsettings.json:

"WriteTo": [ { "Name": "Email", "Args": { "options": { "from": "[email protected]", "to": [ "[email protected]" ], "host": "myhiddensmpturi", "port": 25, "subject": "oops", "connectionSecurity": "None" }, "batchingOptions": { "batchSizeLimit": 10, "period": "00:05:00" }, "restrictedToMinimumLevel": "Warning" } }, ..

I'm trying to limit number of mail sent but batching options seems not to work. When I run my app creating severeal errors, I receive 1 mail for each error. I cannot understand how to properly configure my appsettings in order to get it works.

dvRox84 avatar Jan 21 '25 09:01 dvRox84