add log4j support

add log4j support while remove the PrintUtil
remove log4j
add test