Hello all,
I'm still a beginner using Log4J, I'm trying using property file for setting the confirguration for log4j in a
test java file with main method, I set the classpath for a location that reside with xx_log4j.properties
But the file was never read, except I write the full path of it, I opened the source of the PropertyConfigurator & I found that it reads the file using
class, which I think does not search the classpath for file.
so any suggestion ?!?!?!?!?!
I thought for an idea to use something to search the classpath for the file, then get the absolute path and pass it in the PropertyConfigurator, I tried to use
but there is no method to return the absolute path.
so any suggestion to determine a file in the classpath