public class SwallowedExceptionLogger extends java.lang.Object implements SwallowedExceptionListener
| 构造器和说明 |
|---|
SwallowedExceptionLogger(org.slf4j.Logger log)
Create a SwallowedExceptionLogger with the given logger.
|
SwallowedExceptionLogger(org.slf4j.Logger log,
boolean logExpiredConnections)
Create a SwallowedExceptionLogger with the given logger and expired connection logging property.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
onSwallowException(java.lang.Exception e)
This method is called every time the implementation unavoidably swallows
an exception.
|
public SwallowedExceptionLogger(org.slf4j.Logger log)
log - loggerpublic SwallowedExceptionLogger(org.slf4j.Logger log,
boolean logExpiredConnections)
log - loggerlogExpiredConnections - false suppresses logging of expired connection eventspublic void onSwallowException(java.lang.Exception e)
SwallowedExceptionListeneronSwallowException 在接口中 SwallowedExceptionListenere - The exception that was swallowed