Limit text length when logging

We register application SOAP requests for interfaces using the logback.xml configuration file. SOAP requests are themselves generated using the Apache CXF framework.

The configuration is shown below.

<logger name="org.apache.cxf.interceptor.LoggingInInterceptor" additivity="false"> <level value="INFO" /> <appender-ref ref="SOAPENVELOPLOGS" /> </logger> 

The problem we are facing is that the SOAP request / response is longer than 102410 characters, then the rest of the text is not printed in the logs. So we have a partial request / response that is printed in the logs.

I would like to know what is the length limit in logback or Apache CXF.? And is there any work for this?

thanks

+6
source share
1 answer

CXF. LoggingInInterceptor has a property on it to control the size of the limit of what it registers. You will need to set a limit there.

+5
source

Source: https://habr.com/ru/post/903090/


All Articles