Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-1585

Please allow us to disable Appenders (so that no file is created at all)

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.3.0-alpha10
    • Fix Version/s: None
    • Component/s: logback-classic
    • Environment:

      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

        Attachments

          Activity

            People

            Assignee:
            logback-dev Logback dev list
            Reporter:
            Jehoschua Jehoschua
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: