net.sf.spring.batch
Class Log4jConfigurator

java.lang.Object
  extended bynet.sf.spring.batch.Log4jConfigurator
All Implemented Interfaces:
LogConfigurator

public class Log4jConfigurator
extends Object
implements LogConfigurator

A basic log4j configuration.

The confDir/jobName.toLowerCase()-log4j.xml is used.

If the previous file isn't found, a simple basic log4j configuration is made with a console appender with WARN level.

Author:
willy

Constructor Summary
Log4jConfigurator()
           
 
Method Summary
 void configure(File confDir, String appName)
          Called by launcher.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Log4jConfigurator

public Log4jConfigurator()
Method Detail

configure

public void configure(File confDir,
                      String appName)
Description copied from interface: LogConfigurator
Called by launcher.

Specified by:
configure in interface LogConfigurator
Parameters:
confDir - The configuration directory.
appName - The name of the batch.
See Also:
LogConfigurator.configure(java.io.File,java.lang.String)


Copyright © 2009. All Rights Reserved.