added Log4j and sample implementation