$ rg -l -e Console -e STDOUT
httpclient5-cache/src/test/resources/log4j2.xml
httpclient5-win/src/test/resources/log4j2.xml
httpclient5-testing/src/test/resources/log4j2.xml
httpclient5-testing/src/test/resources/log4j2-debug.xml.template
httpclient5/src/test/resources/log4j2.xml
httpclient5/src/test/resources/log4j2-debug.xml.template

On Sun, Mar 27, 2022 at 8:35 AM Asutosh Pandya (Jira) <[email protected]>
wrote:

>
>     [
> https://issues.apache.org/jira/browse/HTTPCLIENT-2210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17512977#comment-17512977
> ]
>
> Asutosh Pandya commented on HTTPCLIENT-2210:
> --------------------------------------------
>
> [~enterit] [~olegk] - I am happy to contribute the changes. Can someone
> please point me to right log4j.xml file which needs to be updated. Didn't
> found any log4j files in source resources directory in [
> https://github.com/apache/httpcomponents-client.]
>
> > 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]
>
>

Reply via email to