[PATCH v4 1/2] sandbox: log: Avoid build error with !CONFIG_LOG