refactored and added unit test for CocuchbaseLogger.logListener()