You would use the "store": true API parameter on either Chat Completions or Responses.
The “logs” is more for fine-tune distillation or evals, in-platform, rather than for auditing. It is not quite ideal for either, as a typical fine-tune optimization would be long system prompt to generate training data → small system prompt and the examples alone teach the behavior.