Class LoggerNameFilter

  • All Implemented Interfaces:
    LogRecordFilter

    public class LoggerNameFilter
    extends java.lang.Object
    implements LogRecordFilter
    Implementation of the LogRecordFilter interface for filtering out records not written by a logger with a matching name.
    • Constructor Summary

      Constructors 
      Constructor Description
      LoggerNameFilter​(java.lang.String namePattern)
      Creates a filter instance for matching logger names using a specified regular expression.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean accept​(RepositoryLogRecord record)
      Checks if record should be accepted into the list.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LoggerNameFilter

        public LoggerNameFilter​(java.lang.String namePattern)
        Creates a filter instance for matching logger names using a specified regular expression.
        Parameters:
        namePattern - regular expression Pattern that each record's logger name will be compared to
    • Method Detail

      • accept

        public boolean accept​(RepositoryLogRecord record)
        Description copied from interface: LogRecordFilter
        Checks if record should be accepted into the list.
        Specified by:
        accept in interface LogRecordFilter
        Parameters:
        record - log record to check
        Returns:
        true if record should be included in the list; false otherwise.