Adds is_enabled flag to Logger to support conditional debug logging.