Skip to content

Results for “logging”

5 prompts

Set up error monitoring for a [stack] app in production. Explain what to capture (errors, context, releases), how to avoid logging sensitive data, alerting rules, and show the integration code for [tool or a generic logger].

ChatGPT
Coding & Development

Error monitoring setup

Catches and reports production errors before users complain.

Create a code review checklist for a team working in [stack]. Cover correctness, readability, tests, security, performance, error handling, logging, documentation and style. Add tips for giving kind, actionable review comments.

ChatGPT
Coding & Development

Code review checklist for a team

A practical checklist for consistent code reviews.

Write a Bash script that [task]. Use set -euo pipefail, validate arguments, print usage help, log steps with timestamps, clean up temporary files on exit, and make it safe to run twice.

ChatGPT
Coding & Development

Bash script with safe defaults

A robust shell script with error handling and logging.

Help me set up a scheduled job. Task: [what it does] Schedule: [e.g. every weekday at 7am in Europe/London] Environment: [Linux cron, Kubernetes CronJob, framework scheduler, cloud scheduler] Give the correct schedule expression (explain each field and the time zone), the job code skeleton, locking to prevent overlapp…

ChatGPT
Coding & Development

Scheduled jobs and cron tasks

Set up reliable scheduled jobs with correct cron syntax, logging and failure alerts.

Review the code below and improve its logging and error handling. Language/framework: [details] Logging tool: [details] Code: ``` [paste] ``` Add: structured logs with useful context (without secrets or personal data), appropriate log levels, custom error types where helpful, user-safe error messages, retries for tran…

ChatGPT
Coding & Development

Better logging and error handling

Make failures easy to diagnose with structured logs, meaningful errors and safe messages for users.