Refactored KEEN_LOGGING_ENABLED