Configuring Log4j programmatically