Created attachment 29532 [details] FlashbackAppender prototype This is a proposal for a generic "appender decorator" that keeps messages that are below the current logger level to print these "lost" events in case of error. The idea is that in case of error you need as much information as possible to debug the problem and this it usually lost because the log level was too low. If the problem is hard to reproduce you can not raise the log level after the exception. Even if the problem it's easy to reproduce it could be a waste of time or problematic for production environments. This is a proof of concept. I used an appender, maybe there are better options. Current implementation uses a couple of hacks to make the configuration as easy as possible. A lot of obvious features are missing (filters for trigger events, etc.). I'm starting to use this in a stage/production environment to check its effectiveness.