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

TimeFilter should be usable as global filter or logger filter

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.7
    • 2.8
    • Filters
    • 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

            rpopma Remko Popma
            rpopma Remko Popma
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: