The problem with log4j finding it's property file in Processing has now been fixed.
log4j wasn't finding the file because the value passed by the dataPath("") statement doesn't include a closing \ character. The simple fix is to append it to the file name. Therefore the command becomes
PropertyConfigurator.configure(dataPath("")+"\\log4j.properties");
(The double \\ to print a single \ is required by java because a single \ has other purposes and can be read about here).

No comments:
Post a Comment