Use Log4J v2

I upgrade to Log4J v2 for better performance and maintainability.
Specify target class version

I set the target class compatibility to 1.6 to prevent class version
errors.