Added log4j and view log file functionality