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 Details

    • registerConsumer

      void registerConsumer(Consumer<SqlLogEntry> consumer)
      registerConsumer registers a consumer for SqlLogEntries. All registered consumers are called when a log entry is processed.
    • removeConsumer

      void removeConsumer(Consumer<SqlLogEntry> consumer)
    • processLogEntry

      void processLogEntry(SqlLogEntry logEntry)
      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.