making logs to work (log4j)