- refactored logging component