replaced slf4j with log4j2 and ported CreateMode