title: How to remove appender from logger in log4j2 programmatically?
body: <p>Is there any way I can remove appender from a logger in log4j2 programmatically ?</p>
  
  <p>The website says "Log4j 2 API does not expose methods to add, modify or remove appenders and filters or manipulate the configuration in any way" : 
  <a href="https://logging.apache.org/log4j/2.x/manual/configuration.html" rel="noreferrer">https://logging.apache.org/log4j/2.x/manual/configuration.html</a></p>
  
  <p>But i would really appreciate if someone can suggest an indirect way to achieve this.</p>
  
  <p>Thanks.</p>