Adding Logging component fix and refactoring

Spelling mistake s/tim/time