Make log4j API with configuration