io write and log4j simple