Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Text length limit in logback logging

We are logging the application SOAP requests to the interfaces using the logback.xml configuration file. The SOAP requests are itself generated with the framework Apache CXF.

The configuration is given below.

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

The problem we are facing is when the SOAP request / response is of length more than 102410 characters, then the rest of text is not printed in the logs. Thus we have partial request / response being printed in the logs.

Would like to know is that this length limitation is in logback or Apache CXF.? And that is there any work around for the same?

Thanks

like image 340
Kunal Jha Avatar asked Dec 05 '11 10:12

Kunal Jha


1 Answers

CXF. The LoggingInInterceptor has a property on it to control the limit size of what it logs. You would need to set the limit in there.

like image 164
Daniel Kulp Avatar answered Sep 23 '22 16:09

Daniel Kulp