As a part of Smart Reporting 20.02 Patch 02 deployment the log4j.properties file is replaced by log4j2.xml file. Here are the steps to enable different logs in same file
|
This knowledge article may contain information that does not apply to version 21.05 or later which runs in a container environment. Please refer to Article Number 000385088 for more information about troubleshooting BMC products in containers. Update log4j2.xml file as below to capture respective logs, located at:
1) To enable SmartReportinglogs in debug mode enter the below section in the file: <!-- uncomment to set everything under com.hof and bi.yellowfin to debug --> <Logger name="com.hof" level="DEBUG" > <AppenderRef ref="applog" /> </Logger> <Logger name="bi.yellowfin" level="DEBUG" > <AppenderRef ref="applog" /> </Logger> 2)To enable jdbc logs in debug mode change the "INFO" level to "DEBUG" and additivity to "true": <Logger name="com.hof.pool.DBConnectionPool.jdbclog" additivity="true" level="DEBUG"> <AppenderRef ref="jdbclog" /> </Logger> 3)To enable source logs in debug mode change the "INFO" level to "DEBUG" and additivity to "true" : <Logger name="com.hof.pool.DBConnectionPool.sourcelog" additivity="true" level="DEBUG"> <AppenderRef ref="sourcelog" /> </Logger> 4)To enable broadcast logs in debug mode change the "INFO" level to "DEBUG" and additivity to "true" : <Logger name="com.hof.util.Email.emaillog" additivity="true" level="DEBUG"> <AppenderRef ref="emaillog" /> </Logger> |