How do I configure commons logging for my application
import org.apache.commons.logging.*;
import org.apache.commons.logging.impl.*;
public MyClass{
protected static Log log = LogFactory.getLog(ACE_SAXController.class);
public static void main(
String[] arg)
{
System.setProperty("org.apache.commons.logging.LogFactory", ACE_ReadProperty.getValue("LOG_FACTORY"));// LOG_FACTORY is set to org.apache.commons.logging.impl.LogFactoryImpl
log.info("Hello World");
}
}
I don't know how to configure this thing. When I run this program i give the log message "Hello World" to the system output. How do I configure it to throw this message to a log file. how do i configure the location of the log file?. I got a deadline of today to deliver it. Please help
Regs
thomas