Interface LogEnricher

All Superinterfaces:
AutoCloseable, Closeable
All Known Implementing Classes:
EnrichmentOff, LogEnricherPostgreSql

public interface LogEnricher extends Closeable
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 Type
    Method
    Description
    Returns the application name of the log enricher.
    Retrieves the SQL statement associated with the given query ID.

    Methods inherited from interface java.io.Closeable

    close
  • Method Details

    • getStatement

      String getStatement(String queryId)
      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.