Added log formating with time and severity to log file.