Hi

I suspect there might be a problem with log4j configuration, I would be
nice if you could share a sample project to simulate the problem.

Thanks

On Wed, Oct 2, 2019 at 9:41 PM Tóth Csaba <[email protected]> wrote:

> Hello!
>
> I try to set up message log for server with spring with log4j2.
>
> I already created the META-INF/cxf/org.apache.cxf.Logger file with the
> content: org.apache.cxf.common.logging.Log4jLogger
> Set up the log4j2 config file.
> insert logging into the cxf-servlet.xml:
>      <bean id="loggingFeature"
> class="org.apache.cxf.feature.LoggingFeature">
>          <property name="prettyLogging" value="true" />
>      </bean>
>      <cxf:bus>
>          <cxf:features>
>              <ref bean="loggingFeature" />
>          </cxf:features>
>      </cxf:bus>
>
> The cxf working, but only in the eclipse and/or tomcat log, but not with
> the log4j  (in the console there is the log entry, but not in the log4j
> logfile)
> The log4j2 working with my custom code (its create the logs)
> I't look like dont find the META-INF/cxf/org.apache.cxf.Logger file.
> I tried with the
> -Dorg.apache.cxf.Logger=org.apache.cxf.common.logging.Log4jLogger
> starting parameter too.
>
> I did lots of google search, but its about
> - create the config file (org.apache.cxf.Logger) with
> org.apache.cxf.common.logging.Log4jLogger or
> org.apache.cxf.common.logging.Slf4jLogger
> - set up the org.apache.cxf.feature.LoggingFeature or LoggingInInterceptor
> I tried every combination, but not worked (the message only in the
> console log, and not int he log4j logfile)
>
> Thanx
> Csaba
>

Reply via email to