Log class' refactoring.