Details
-
Improvement
-
Resolution: Fixed
-
Major
-
None
-
1.3.0-alpha10
-
not relevant
Description
Good evening
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,
Thomas