Interface SpyLoggerService
- All Known Implementing Classes:
SpyLoggerServiceImpl
public interface SpyLoggerService
This service is used to process SqlLogEntries that are recorded directly at the datasource. This
only works in development mode.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
processLogEntry
(SqlLogEntry logEntry) processLogEntry this method is called by NiceLogger (p6spy) with a valid SqlLogEntry as a param.void
registerConsumer
(Consumer<SqlLogEntry> consumer) registerConsumer registers a consumer for SqlLogEntries.void
removeConsumer
(Consumer<SqlLogEntry> consumer)
-
Method Details
-
registerConsumer
registerConsumer registers a consumer for SqlLogEntries. All registered consumers are called when a log entry is processed. -
removeConsumer
-
processLogEntry
processLogEntry this method is called by NiceLogger (p6spy) with a valid SqlLogEntry as a param. In this method, all registered consumers will be called with the given SqlLogEntry.
-