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 void
consumeEvent(ProfilerEvent evt)
void
destroy()
void
init(Log log)
void
processEvent(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:
consumeEvent
in interfaceProfilerEventHandler
-
destroy
public void destroy()- Specified by:
destroy
in interfaceProfilerEventHandler
-
init
- Specified by:
init
in 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:
processEvent
in interfaceProfilerEventHandler
-