You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public final class LogExceptionsFactory implements P6Factory
{
private static final ErrorLoggingEventListener ERROR_LOGGING_INSTANCE = new ErrorLoggingEventListener();
@Override
public JdbcEventListener getJdbcEventListener()
{
return ERROR_LOGGING_INSTANCE;
}
@Override
public P6LoadableOptions getOptions(P6OptionsRepository optionsRepository)
{
return new P6LogOptions(optionsRepository);
}
}
Please document the use of EventListeners. This was much harder than it should have been :)
I want P6Spy to log SQL warnings/exceptions. I ran across
ErrorLoggingEventListener
whose Javadoc recommends:However, when I do this nothing gets logged. Is it possible to add error logging without disabling the default event listener?
The text was updated successfully, but these errors were encountered: