statistics logging refactoring. Base class extracted. preparing for LogReader