Interface LogEnricher
- All Superinterfaces:
AutoCloseable
,Closeable
- All Known Implementing Classes:
EnrichmentOff
,LogEnricherPostgreSql
Interface for enriching log entries with additional information from a database.
The LogEnricher
interface defines methods for retrieving SQL statements
associated with specific query IDs and for obtaining the name of the application
using the log enricher.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the application name of the log enricher.getStatement
(String queryId) Retrieves the SQL statement associated with the given query ID.
-
Method Details
-
getStatement
Retrieves the SQL statement associated with the given query ID.The implementation should return the corresponding SQL statement for the provided query ID, or
null
if no such statement can be found.- Parameters:
queryId
- the query ID for which to retrieve the SQL statement.- Returns:
- the SQL statement associated with the given query ID, or
null
if not found.
-
enricherApplicationName
String enricherApplicationName()Returns the application name of the log enricher.- Returns:
- the name of the log enricher application.
-