What problem does it solve?
This Skill prevents silent production failures and debugging dead-ends by guiding correct Frappe logging and error-tracking patterns so administrators can reliably see, trace, and diagnose issues.
Core Features & Use Cases
- Application logging with
frappe.logger(): Create module-specific rotating log files under sites/{site}/logs/ for traceable operational visibility.
- Admin-visible error tracking with
frappe.log_error(): Persist exceptions into the Error Log DocType for Desk UI review and querying.
- Production request and performance monitoring: Enable HTTP request logging and per-request metrics via
enable_frappe_logger and monitor in site_config.json.
- External error tracking via Sentry: Capture unhandled exceptions by setting
FRAPPE_SENTRY_DSN and optional profiling/DB monitoring environment variables.
- Safety guardrails: Avoid common anti-patterns like
print() usage, positional log_error() arguments that can swap fields, and leaking sensitive tokens/passwords into logs.
Quick Start
Use the frappe-core-logging skill to implement production-grade logging and error tracking in your Frappe app without relying on print statements.