Question

I'd like to disable org.springframework.integration.handler.LoggingHandler logging with log4j / log4j2.

I tried the following which did not work:

<loggers>
    <logger name="log4j.logger.org.springframework.integration" level="off" />
</loggers>
Was it helpful?

Solution

Remove log4j.logger from the logger name.

<loggers>
    <logger name="org.springframework.integration">
       <level value="off" />
    </logger>
</loggers>

OTHER TIPS

You seem to have a typo (extra "s"), try:

<logger>
    <logger name="log4j.logger.org.springframework.integration" level="off" />
</logger>

You can also try:

<logger name="log4j.logger.org.springframework.integration">
 <level value="OFF"/>
</logger>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top