This is an old revision of the document!


Logging in SOLoist projects

log4j library is used as a logging utility for SOLoist projects. log4j.jar file is placed in war/lib folder in EmptyProject. You can always download the latest version of log4j from Apache log4j Website.

log4j Configuration

To configure log4j for SOLoist project you have to change log4j.xml file. log4j.xml is part of EmptyProject. You have to set path to log file on your file system and logging level. More about configuration of log4j.xml you can read on Apache Logging Wiki.

	<appender name="file" class="org.apache.log4j.DailyRollingFileAppender">
		<param name="file" value="d:/temp/logs/firstaid/out.log"></param>
		<layout class="org.apache.log4j.PatternLayout">
			<param name="ConversionPattern" value="%-5p %d{ABSOLUTE} - %m%n"></param>
		</layout>
	</appender>
Print/export