Updated java snippets for logging.
Bind F4 to clean and restart tomcat.