lgh_log
Retrieve recent server log entries from the local log file, optionally filtered by severity level, to diagnose past failures or unexpected behavior. Returns a JSON array of log records.
Instructions
Read the LGH server's runtime log from ~/.localgithub/logs/server.jsonl and return the most recent entries as a JSON array of {ts, level, msg, component} objects (an empty array if no log file exists yet). A level filter keeps only entries at exactly that severity, so level=ERROR surfaces just the failures. Use this to investigate why a push or the server misbehaved in the past: lgh_status only shows the current health snapshot, while lgh_log shows the history that led to it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | No | Filter by log level (DEBUG, INFO, WARN, ERROR) | |
| limit | No | Number of log entries to return (default: 20) |