Eclipse Plugin Central

Log4E - Exception during runtime

Anonymous - May 19, 2006 - 01:46 AM
Post subject: Exception during runtime
Hi i had a problem while using Log4e

import org.apache.log4j.Logger;
import org.apache.log4j.*;
public class Hello {
/**
* Logger for this class
*/
private static final Logger logger = Logger.getLogger(Hello.class);

public static void main(String args[])
{
String str="Subhakar";


logger.info("- Test - str=" + str);

}
}

And this was raising an exception during runtime and the exception was raised at line
private static final Logger logger = Logger.getLogger(Hello.class);
Can any body please assist me.
All times are GMT - 6 Hours
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits