Added support for logging using log4j 1.2.9