* @param logFile file for log messages
*/
public void init(String logFile)
throws Exception
{
FileOutputLogTarget target = new FileOutputLogTarget();
File logFileLocation = new File (logFile);
logPath = logFileLocation.getAbsolutePath();
target.setFilename( logPath );
target.setFormatter(new VelocityFormatter());
target.setFormat("%{time} %{message}\\n%{throwable}" );
logger = Hierarchy.getDefaultHierarchy().getLoggerFor( "velocity" );
logger.setPriority( Priority.DEBUG );
logger.setLogTargets( new LogTarget[] { target } );
}