can anyone tell where will my log file get stored in the below program...
import org.apache.log4j.*;
public class SimpleLogging {
/** Creates a new instance of SimpleLogging */
public SimpleLogging() {
}
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
Logger logger =Logger.getLogger("name");
logger.info("Hello this is an info message");
}
}
You have to have either log4j.properties or log4j.xml which contains the configuration information for log4j to use. Please use an appropriate forum, this is not a general java question. Please read this.