Log4j as method to aviod serialization problems.