I am just begining in Log4J an I am facing an issue that I don't realy understand. I am using Eclipse IDE, and after compilation the got this message:
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0 at test.log.Program.main(Program.java:20)
See below the code I wrote
static Logger logger = Logger.getLogger(Program.class);
/**
* @param args
* @throws IOException
*/
public static void main(String[] args) throws IOException{
PropertyConfigurator.configure(args[0]);
logger.info("Hello PropertyConfigurator");
}
Please advise.
Regards.