The application is a very simple maven application, I put the log4j.properties in resources folder, then I run mvn clean package, then in ecllipse, I right click the project and choose run as java application, but error
No appenders could be found for logger (x.y.TestLog4j)
Please initialize the log4j system properly.
I think the application cannot load the log4j.properties, but how to let the application find the log4.properties?
I check api and there is some
but I do not know how to create the URL. any help is appreciated.