Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-1706

TimeFilter should be usable as global filter or logger filter

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.7
    • Fix Version/s: 2.8
    • Component/s: Filters
    • Labels:
      None

      Description

      With the current implementation, TimeFilter will always return NEUTRAL unless configured on an Appender or an AppenderRef.

      This ticket proposes to allow TimeFilter to be used as a global filter or as a logger filter.

      When a LogEvent is not available, TimeFilter will filter on the current time, obtained from the log4j Clock (the system time by default).

        Attachments

          Activity

            People

            • Assignee:
              remkop@yahoo.com Remko Popma
              Reporter:
              remkop@yahoo.com Remko Popma
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: