java.lang.Object
org.apache.sling.commons.log.logback.internal.store.LogStoreImpl
All Implemented Interfaces:
LogStore

public class LogStoreImpl extends Object implements LogStore
  • Constructor Details

    • LogStoreImpl

      public LogStoreImpl(int maxEntriesKept)
  • Method Details

    • append

      public void append(LogEntry snapshot)
    • getRecent

      public List<LogEntry> getRecent(Pattern pattern, LogLevel minLevel, int maxEntries)
      Description copied from interface: LogStore
      Returns a list of LogEntries matching the specified parameters
      Specified by:
      getRecent in interface LogStore
      Parameters:
      pattern - the pattern to match against all the text-based fields of the log entry. Ignored if null.
      minLevel - the minimum level of the log entries. Defaults to LogLevel.TRACE if null.
      maxEntries - the maximum entries to return. Clamped to 1 if needed.
      Returns:
      a list of entries matching the parameters. May be empty but not null
    • setMaxEntries

      public void setMaxEntries(int maxEntriesKept)