Package com.mysql.cj.log
Class LoggingProfilerEventHandler
java.lang.Object
com.mysql.cj.log.LoggingProfilerEventHandler
- All Implemented Interfaces:
ProfilerEventHandler
public class LoggingProfilerEventHandler extends java.lang.Object implements ProfilerEventHandler
A profile event handler that just logs to the standard logging mechanism of the driver.
-
Constructor Summary
Constructors Constructor Description LoggingProfilerEventHandler() -
Method Summary
Modifier and Type Method Description voidconsumeEvent(ProfilerEvent evt)voiddestroy()voidinit(Log log)voidprocessEvent(byte eventType, Session session, Query query, Resultset resultSet, long eventDuration, java.lang.Throwable eventCreationPoint, java.lang.String message)
-
Constructor Details
-
LoggingProfilerEventHandler
public LoggingProfilerEventHandler()
-
-
Method Details
-
consumeEvent
- Specified by:
consumeEventin interfaceProfilerEventHandler
-
destroy
public void destroy()- Specified by:
destroyin interfaceProfilerEventHandler
-
init
- Specified by:
initin interfaceProfilerEventHandler
-
processEvent
public void processEvent(byte eventType, Session session, Query query, Resultset resultSet, long eventDuration, java.lang.Throwable eventCreationPoint, java.lang.String message)- Specified by:
processEventin interfaceProfilerEventHandler
-