Github user brianghig commented on the pull request:

    https://github.com/apache/incubator-nifi/pull/59#issuecomment-105625875
  
    Hi Joe,
    
    We could use filters within the Logback configuration to turn on/off 
Throwables or any granularity of Exceptions.  Since exceptions can be used for 
more than debugging, doing so would honor the caller's logging level of the 
throwable and allow admins to maintain full control over the logs.
    
    For example, using some built-in mechanisms from 
http://logback.qos.ch/manual/filters.html#evalutatorFilter, we could add 
something like this to the appender(s):
    ```
    <filter class="ch.qos.logback.core.filter.EvaluatorFilter">
        <evaluator>
            
<expression>java.lang.Exception.class.isInstance(throwable)</expression>
        </evaluator>
        <onMatch>DENY</onMatch>
    </filter>
    ```
    
    Thanks,
    Brian


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to