[logback-dev] [JIRA] Updates for LOGBACK-1585: Please allow us to disable Appenders (so that no file is created at all)

QOS.CH (JIRA) noreply-jira at qos.ch
Fri Oct 29 00:13:00 CEST 2021


logback / LOGBACK-1585 [Open]
Please allow us to disable Appenders (so that no file is created at all)

==============================

Here's what changed in this issue in the last few minutes.
This issue has been created
This issue is now assigned to you.

View or comment on issue using this link
https://jira.qos.ch/browse/LOGBACK-1585

==============================
 Issue created
------------------------------

Jehoschua created this issue on 29/Oct/21 12:01 AM
Summary:              Please allow us to disable Appenders (so that no file is created at all)
Issue Type:           Improvement
Affects Versions:     1.3.0-alpha10
Assignee:             Logback dev list
Components:           logback-classic
Created:              29/Oct/21 12:01 AM
Environment:          not relevant
Labels:               appender logback-core
Priority:             Major
Reporter:             Jehoschua
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


==============================
 This message was sent by Atlassian Jira (v8.8.0#808000-sha1:e2c7e59)



More information about the logback-dev mailing list