added LogAnalysis2 with some refactorings