Fix initialization ordering issue in Log4jAppender. Found while working on CDK-39.