This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Advisory: How to prevent excess Tomcat StdOut logging in Sage CRM 2020 R2 and Sage CRM 2021 R1

A customer may experience the Tomcat log StdOut (e.g. crmtomcat9-stdout.2021-02-01.log) is constantly running in debug mode. This may result in very large logs being created.

Changing the log level in in the logging.properties does not affect this behaviour.

This can be resolved by changing the Debug level and target for the Exchange Log4j configuration.

Follow the steps below to make the changes ,

1) Search for Log4j2.xml in

<installfolder>\<crm_instance>\tomcat\webapps\<crm_instance>ExchangeSyncEngine\WEB-INF\classes

2) Comment out Console Logger section from the file,

<!-- Console logger -->
<!-- <Console name="console" target="SYSTEM_OUT"> -->
<!-- <PatternLayout disableAnsi="false" > -->
<!-- <pattern> -->
<!-- %highlight{%-5p [%t]: %d{dd-MMM-yyyy HH:mm:ss.SSS} [%M] %level} - %msg%n -->
<!-- </pattern> -->
<!-- </PatternLayout> -->
<!-- </Console> -->

2) Replace the level for DEBUG to ERROR and the log location from ‘console’ to ‘defaultlog’.

<!-- Root Logger -->
<root level="error">
<appender-ref ref="defaultLog" />
</root>

Changes to the default logging settings will be made in future releases.