Logging AI Prompts and Responses in Java Without Leaking Sensitive Data