I am trying to configure log4j 2.0 to report logs.
My config is saved as log4j2.xml and this is its content:
It exists in the classpath of the project and I tried putting it in many other directories.
Where exactly? There is often confusion about where "in the classpath" means. It can't just be anywhere. It has to be at the 'top' or the 'default package'.
src
├── main
│ └── java
│ ├── com
│ │ └── example
│ └── log4j2.xml