I added slf4j-log4j12-1.7.16, log4j-api-2.5, and log4j-core-2.5. I am using Gradle to build this and manage dependencies. In my Gradle config I have the following
run {
jvmArgs = ["-Dlog4j.configurationFile=file:/home/me/Programming/RESTServer/resources/config/log4j2.xml"]
}
I did notice something interesting. It looks like Gradle downloaded multiple version of log4j. Perhaps one is a dependency. Here is what I added to get log4j:
compile group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.5'
compile group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.5'
But I also noticed log4j:log4j:1.2.17 in my External Libraries. Is it possible ehcache added the older one and since I have not configured that one it thinks there is no config file?