Sample app with log4j2. Get the source, xml and eclipse project files from this zip (size:8.00 KB (8,192 bytes))
the read me has commands for windows. I put the project in \prog\j\log4j2\samples\app1
you can customize for your self.
To run :
set log4j2p=\prog\j\log4j2\apache-log4j-2.0-alpha2-bin\log4j-core-2.0-alpha2.jar;\prog\j\log4j2\apache-log4j-2.0-alpha2-bin\log4j-api-2.0-alpha2.jar
set classpath=bin;%log4j2p%
java com.s2n.log4j2.app1.Mn
Also made the folders for the log files, those should be in the zip
home