LogoSkills

inspector/log

App log runtime management and analysis

항ëĒŠë‚´ėšŠ
Categorypetmedi-development
Complexitysimple
MCP Serversflutter-inspector

/inspector/log#

Context Framework Note: Activated when analyzing app logs.

Triggers#

  • Error log check
  • Debug message search
  • Log pattern analysis

MCP Tools#

log_get_recent#

Returns recent logs.

Parameters:

  • limit: Maximum count (default 50)
  • level: Log level filter (debug, info, warning, error)

Response example:

{
   " logs " : [
    {
       " timestamp " :  " 2024-01-01T10:00:00Z " ,
       " level " :  " info " ,
       " tag " :  " AuthBloc " ,
       " message " :  " User logged in successfully " ,
       " data " : { " userId " : 123}
    }
  ]
}

log_get_errors#

Filters and returns only error logs.

Parameters:

  • limit: Maximum count (default 20)
  • includeStackTrace: Whether to include stack trace

Searches for specific patterns in logs.

Parameters:

  • query: Search string (required)
  • tag: Tag filter
  • limit: Maximum count

log_get_stats#

Returns log statistics.

log_clear#

Clears logs.

Common Diagnostics#

Recurring errors#

1. log_get_errors - >   Check error patterns
2. Confirm repeated occurrences from same tag
3. Analyze error context

Performance issue tracking#

1. log_search query= " slow "   or  " timeout " 
 2. Analyze logs around relevant timeframes
3. Identify bottleneck points

App crash cause#

1. log_get_errors - >   Check last error
2. Analyze stack trace
3. Trace logs immediately before the error

Examples#

Check recent logs#

/inspector/log recent

Check error logs only#

/inspector/log errors

Search specific keywords#

/inspector/log search auth

Log statistics#

/inspector/log stats

References#

  • Detailed implementation: .claude/agents/flutter-inspector-log.md
  • Master inspector: .claude/commands/inspector.md