Log4j metrics type

This PR adds template and example for log4j events rate metrics ( http://metrics.codahale.com/manual/log4j/ ).