You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Andrei Ivanov (JIRA)" <ji...@apache.org> on 2018/08/24 14:11:00 UTC
[jira] [Updated] (LOG4J2-2420) RequestContextFilter logging cleanup
[ https://issues.apache.org/jira/browse/LOG4J2-2420?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrei Ivanov updated LOG4J2-2420:
----------------------------------
Summary: RequestContextFilter logging cleanup (was: Logging cleanup)
> RequestContextFilter logging cleanup
> ------------------------------------
>
> Key: LOG4J2-2420
> URL: https://issues.apache.org/jira/browse/LOG4J2-2420
> Project: Log4j 2
> Issue Type: Improvement
> Components: Log4j-Audit
> Affects Versions: Log4j-Audit 1.0.0
> Reporter: Andrei Ivanov
> Priority: Minor
>
> The {{RequestContextFilter}} logs some details that should be done on {{DEBUG}} or {{TRACE}} instead of {{INFO}}.
> {noformat}
> 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
> {noformat}
> There's even a small bug on the 1st [line|https://github.com/apache/logging-log4j-audit/blob/9bab5dad26e67642573cbc8257b6cbcafb23bf3c/log4j-audit/log4j-audit-api/src/main/java/org/apache/logging/log4j/audit/rest/RequestContextFilter.java#L82] 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.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)