added logger for output (log4j)