Implemented log4j logging.