there are several discussions about how to disable appenders in logback and there are various suggestions - up to commenting them out in the XML
But all suggestions are just workarounds that could be solved much more elegantly if appenders would offer a simple enabled=true/false flag.
Could you please consider adding such a flag?
The most useful advantages are:
- log files would not even be created on the disk for disabled appenders
- this makes the analysis much clearer and easier
- we do not open logfiles just to see that they just have the header but no useful information
Maybe an enabled=true/false flag would even give a cool additional benefit: It could be that the logback performance becomes even more powerful because the disabled elements can be removed by the optimizer
Thanks a lot, kind regards,