serilog-archive / serilog-sinks-azuredocumentdb

A Serilog sink that writes to Azure DocumentDB
Apache License 2.0
17 stars 15 forks source link

Question: Is there retry logic if Azure Doc db is unreachable for any reason #62

Closed aagarwal10 closed 7 years ago

aagarwal10 commented 7 years ago

Just curious if this is supported or can be supported in future.

Thanks,

saleem-mirza commented 7 years ago

@aagarwal10 at this time, this sink doesn't support retry logic. I intentionally dropped this feature for sake of simplicity, portability and also arguably performance. Retry needs a lot of moving parts which makes sink less portable e.g. how many times it needs to try and how often. Does it need to save log messages somewhere if sink is not able to reach destination. If your application can't afford loosing log, I'd suggest to consider either FileSink or SQLite Sink.

aagarwal10 commented 7 years ago

Thanks a lot for responding to the question...