Produce useful structured logs with levels, context fields, correlation identifiers, and safe exception details. Configure logging for local diagnosis and centralized production collection without exposing secrets.