added spec test to log file analyser.
refactored log file analyser.