Refactor enable_collector() into a method for LogCollector that
can be called explicitly to ensure logging is initiated.