Interface LogAnalyser


  • @ProviderType
    public interface LogAnalyser
    The log analyzer is a service making log entries available based on a configuration. By default all log messages with log level ERROR are recorded. Additional configurations can be provided through the setLogConfiguration(LogConfigurationEntry[]) method. However, this configuration is not persisted and does not survive a restart.
    • Method Detail

      • getLogConfiguration

        LogConfigurationEntry[] getLogConfiguration()
        Get the current log configuration
        Returns:
        An array of configurations. The array might have the length zero.
      • setLogConfiguration

        void setLogConfiguration​(LogConfigurationEntry[] config)
        Set the new configurations
        Parameters:
        config - An array of configurations or null to remove all configs.
      • getLastLogEntries

        java.util.List<LogEntry> getLastLogEntries​(int size)
        Get the last number of log entries.
        Parameters:
        size - The maximum number of log entries or -1 to get all available entries.
        Returns:
        A list of log entries