get_logs
Retrieve application logs from a running Elixir app to diagnose errors, warnings, and crashes. Filter by severity or grep pattern to isolate relevant entries.
Instructions
Your primary debugging tool. Retrieve application logs from the running Elixir app — errors, warnings, crash reports, and application output. This is the ONLY source of log data; no other tool provides it.
WHEN TO USE: First step when diagnosing any problem. Check logs before drawing conclusions from other tools. NOT FOR: System resource usage (use get_system_stats). Process-level details (use get_process_info).
Use grep to filter (e.g. "error", "warning", "timeout") and level to filter by severity. Logs are in a circular buffer so old entries may be discarded.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grep | No | Filter logs with regex pattern (case insensitive). E.g., "error" to find error messages | |
| tail | Yes | Number of log entries to return from the end | |
| level | No | Filter by log level |