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

RequestContextFilter logging cleanup

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: Log4j-Audit 1.0.0
    • Fix Version/s: Log4j-Audit 1.0.1
    • Component/s: Log4j-Audit
    • Labels:
      None

      Description

      The RequestContextFilter logs some details that should be done on DEBUG or TRACE instead of INFO.

      INFO  [org.apache.logging.log4j.audit.rest.RequestContextFilter] - Starting request {}/productrepository/2594
      INFO  [org.apache.logging.log4j.audit.rest.RequestContextFilter] - Request /productrepository/2594 completed in 0.139279500 seconds
      

      There's even a small bug on the 1st line where concatenation was used.
      The calculation of the request duration should also be moved in an if block, to avoid it if it won't be logged.

      Same for the Maven plugin, I think it should print the name of the generated classes only on debug.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                shadow Andrei Ivanov
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: