[
https://issues.apache.org/jira/browse/HTTPCLIENT-2210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17508046#comment-17508046
]
Oleg Kalnichevski commented on HTTPCLIENT-2210:
-----------------------------------------------
[~enterit] Would you mind contributing these changes as a PR at GitHub [1] ?
Oleg
[1]https://github.com/apache/httpcomponents-website
> HttpClient Log4j examples refer to non-existing `Console` appender
> ------------------------------------------------------------------
>
> Key: HTTPCLIENT-2210
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-2210
> Project: HttpComponents HttpClient
> Issue Type: Improvement
> Components: Documentation
> Reporter: Sergey Bondarenko
> Priority: Minor
>
> Log4j configuration examples in
> [https://hc.apache.org/httpcomponents-client-5.1.x/logging.html] refer to two
> appenders - one named 'STDOUT', and one named 'Console'.
> However, the config only defines one appender named 'STDOUT'.
> Incorrect reference produces an error:
> {code:java}
> ERROR Unable to locate appender "Console" for logger config
> "org.apache.hc.client5.http" {code}
>
> Config example copied from the doc:
>
> {code:java}
> <Configuration>
> <Appenders>
> <Console name="STDOUT">
> <PatternLayout pattern="%d %-5level [%logger] %msg%n%xThrowable" />
> </Console>
> </Appenders>
> <Loggers>
> <Logger name="org.apache.hc.client5.http" level="DEBUG">
> <AppenderRef ref="Console"/>
> </Logger>
> <Logger name="org.apache.hc.client5.http.wire" level="DEBUG">
> <AppenderRef ref="Console"/>
> </Logger>
> <Root level="INFO">
> <AppenderRef ref="STDOUT" />
> </Root>
> </Loggers>
> </Configuration> {code}
>
>
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]