serilog / serilog-sinks-email

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

EagerlyEmitFirstEvent is ignored #128

Open ficnar opened 8 months ago

ficnar commented 8 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 8 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 8 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.