public class SwallowedExceptionLogger extends Object implements SwallowedExceptionListener
Constructor and Description |
---|
SwallowedExceptionLogger(org.apache.commons.logging.Log log)
Create a SwallowedExceptionLogger with the given logger.
|
SwallowedExceptionLogger(org.apache.commons.logging.Log log,
boolean logExpiredConnections)
Create a SwallowedExceptionLogger with the given logger and expired
connection logging property.
|
public SwallowedExceptionLogger(org.apache.commons.logging.Log log)
log
- loggerpublic SwallowedExceptionLogger(org.apache.commons.logging.Log log, boolean logExpiredConnections)
log
- loggerlogExpiredConnections
- false suppresses logging of expired connection eventspublic void onSwallowException(Exception e)
onSwallowException
in interface SwallowedExceptionListener
Copyright © 2001–2017 The Apache Software Foundation. All rights reserved.