agentleFS
Hashi-Ai-DevHashi-Ai-Dev/HermitDoc/skills/hermes-logging/SKILL.md

hermes-logging

Skill4 starsChanged 7 months agoMITView on GitHub

Use when managing logs, debugging issues, or analyzing Hermes behavior. Covers: hermes logs CLI, log files (agent.log, errors.log, gateway.log), log levels (DEBUG/INFO/WARNING/ERROR), log rotation (max_size_mb, backup_count), log filtering, log analysis. Triggers on: log, logs, logging, trace, debug output, error log.

The file

Files
SKILL.md

Hermes Logging Reference

Hermes logs via the hermes logs CLI. No manual file access needed.

Log Files

LogContents
agent (default)General agent activity
errorsError stack traces
gatewayMessaging platform events
listShow all available log files with sizes

Log CLI

# Default (agent.log, last 50 lines)
hermes logs

# Specific log
hermes logs agent
hermes logs errors
hermes logs gateway

# Line count
hermes logs -n 100

# Follow in real time (like tail -f)
hermes logs -f

# Minimum log level
hermes logs --level DEBUG
hermes logs --level INFO
hermes logs --level WARNING
hermes logs --level ERROR

# Filter by session ID
hermes logs --session abc123

# Filter by time
hermes logs --since 1h
hermes logs --since 30m
hermes logs --since 2d

# Filter by component
hermes logs --component gateway
hermes logs --component agent
hermes logs --component tools
hermes logs --component cli
hermes logs --component cron

# List available logs
hermes logs list

Log Configuration

# ~/.hermes/config.yaml
logging:
  level: INFO              # DEBUG, INFO, WARNING, ERROR
  max_size_mb: 5           # rotate when file exceeds this
  backup_count: 3           # keep last N rotated files

Set via CLI:

hermes config set logging.level DEBUG
hermes config set logging.max_size_mb 10

Log Analysis Patterns

# All errors
hermes logs errors --level ERROR

# Recent gateway issues
hermes logs gateway --level WARNING -n 100

# Tool execution
hermes logs --component tools --level DEBUG

# Specific session
hermes logs --session session-2026-05-18-abc123

# Since last hour
hermes logs -f --since 1h

Log Rotation

Logs rotate automatically based on max_size_mb. Old logs are compressed and kept based on backup_count.

For manual rotation management, use standard tools on the log directory.

References

  • hermes-troubleshooting/ — using logs to diagnose issues
  • hermes-cli/ — log CLI commands
  • hermes-config/ — logging config keys

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.