Introduced factory for creating instances of Logger.
Cleaned tests.