replace System println by log4j appenders