Class SpyLoggerServiceImpl
java.lang.Object
ch.tocco.nice2.persist.core.impl.hibernate.spy.SpyLoggerServiceImpl
- All Implemented Interfaces:
SpyLoggerService
-
Constructor Summary
-
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)
-
Constructor Details
-
SpyLoggerServiceImpl
public SpyLoggerServiceImpl()
-
-
Method Details
-
registerConsumer
Description copied from interface:SpyLoggerService
registerConsumer registers a consumer for SqlLogEntries. All registered consumers are called when a log entry is processed.- Specified by:
registerConsumer
in interfaceSpyLoggerService
-
removeConsumer
- Specified by:
removeConsumer
in interfaceSpyLoggerService
-
processLogEntry
Description copied from interface:SpyLoggerService
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.- Specified by:
processLogEntry
in interfaceSpyLoggerService
-