serilog / serilog-sinks-email

A Serilog sink that writes events to SMTP email
Apache License 2.0
70 stars 68 forks source link

EagerlyEmitFirstEvent is ignored #128

Open ficnar opened 4 months ago

ficnar commented 4 months ago

I have this configuration:

batchingOptions: new()
{
    BatchSizeLimit = 100,
    Period = TimeSpan.FromMinutes(10),
    EagerlyEmitFirstEvent = true
}

I expect, that first message will be sended immediately due settings EagerlyEmitFirstEvent = true. But I receive first message after 10 minutes.

bartelink commented 4 months ago

Probably worth asking on stack overflow, tagged serilog if you're looking for help troubleshooting - very few people watch this issue tracker as it's a list of issues and/or feature requests, not a support forum (and anyone that watches this will also be watching the SO tag) Definitely mention the version you are using (If it was me, I'd be reading the code to try to figure out reasons it could go wrong)

ficnar commented 4 months ago

I tested at last version 3.0.0. I didn't find any issues by google or by dependent components:

I don't know, if its problem of Serilog.Sinks.Email or Srilog.Sinks.Periodicbatching or elsewhere.