serilog-sinks-email
serilog-sinks-email copied to clipboard
BatchingOptions not working
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.