Switched logging to use Log4J for hopefully increased performance. Still
needs some tweaking