返回 Skill 列表
extension
分类: 开发与工程无需 API Key

log-manager

读取并分析应用程序日志,用于调试和监控。

person作者: jakexiaohubgithub

Log Manager Skill

Helps you read logs and identify errors in the application.

Capabilities

  • Read Recent Logs: Fetches the last N lines of logs from PM2.
  • Scan for Errors: Searches log files for keywords like "Error", "Exception", "Fail".

Scripts

1. Read Logs

node .agent/skills/log-manager/scripts/read_logs.js [lines] [process_name]
  • lines (optional): Number of lines to read (default: 50).
  • process_name (optional): Specific PM2 process name (default: all).

2. Scan for Errors

node .agent/skills/log-manager/scripts/scan_errors.js

Scans bot.log and PM2 error logs for issues.