...
- For versions 1.3 or later, this file can be placed in the .mifos directory - see MifosConfigurationLocations for more information. Make a copy of the existing loggerconfiguration.xml from
mifos/src/main/resources/org/mifos/config/resources/loggerconfiguration.xml
- For versions 1.2 and before, this file must be placed on the application server classpath at
org/mifos/framework/util/resources/loggerresources/loggerconfiguration.xml
. If you are using Tomcat, the directory would be$CATALINA_HOME/lib/org/mifos/framework/util/resources/loggerresources/
(parent directories must be created).
To set a loglevel log level for a particular component, you can configure a category by adding XML that looks like this (if it exists, just change the existing XML):
...
You might see lots of noise for warn warning messages from org.hibernate.engine.StatefulPersistenceContext.ProxyWarnLog, to suppress these warning warnings use
Code Block | ||||
---|---|---|---|---|
| ||||
<category name="org.hibernate.engine.StatefulPersistenceContext.ProxyWarnLog" additivity="true"> <priority value="ERROR"/> </category> |
An explanation of this behaviour behavior is given here: https://forum.hibernate.org/viewtopic.php?p=2404391
...
Add these to your external loggerconfiguration.xml (by default these logs are enabled) to be able to see information logs related to Application application initialization, configuration, and database upgrade
Code Block | ||
---|---|---|
| ||
<category name="org.mifos.framework.ApplicationInitializer"> <priority value="INFO"/> </category> <category name="org.mifos.framework.util.ConfigurationLocator"> <priority value="INFO"/> </category> <category name="org.mifos.framework.persistence.DatabaseMigrator"> <priority value="INFO"/> </category> |
...