-
Notifications
You must be signed in to change notification settings - Fork 1
Error Handling #2
Comments
I don't have any novel ideas, something similar to Serilog's |
Hmm, what about some kind of |
👍 - definitely an option. One other is to do what https://github.com/structured-log/structured-log does, which is to allow pipeline elements to send 'self log' events down through the E.g. collectors already implement: fn accept_events(&self, events: &[events::Event<'static>]) -> Result<(), Box<Error>>; When a collector returns an next(Event::new_self_log(err)); Then, subsequent pipeline elements could either treat the tagged events normally (e.g. write them to wherever they might be written along with other events), forward them without modification (so that they reach the Not sure how any of the API would look, but reusing the same eventing infrastructure for self-log events would resolve many of the issues we've experienced in the Serilog design. Thoughts? |
Transient network errors need to be dealt with. I'm not too sure how to approach this one yet, should
emit
have some retry mechanism for unexpected errors?@nblumhardt do you have any suggestions for dealing with errors in the logger?
The text was updated successfully, but these errors were encountered: