a small script to store tomcat logs into dictionary for future use