Use log4j for logging
Merge pull request #499 from simon816/logger-patch

Use log4j for logging