Example of how to create and use log4j