cli-anything-nslogger

Parse, filter, export, and monitor NSLogger log files from iOS and macOS apps.

48.8k|4.5k|Updated Mar 8, 2026
One-click install
npx skills add https://github.com/HKUDS/CLI-Anything --skill cli-anything-nslogger
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cli-anything-nslogger
Source: https://github.com/HKUDS/CLI-Anything/tree/main/nslogger/agent-harness/cli_anything/nslogger/skills
Command: npx skills add https://github.com/HKUDS/CLI-Anything --skill cli-anything-nslogger

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Debugging iOS and macOS apps with NSLogger produces binary .rawnsloggerdata files that are hard to inspect, filter, or feed into automated analysis without the desktop GUI.

Core Features & Use Cases

  • Log Parsing and Filtering: Read .rawnsloggerdata and .nsloggerdata files, filtering by level, tag, thread, regex, or text search with JSON output.
  • Export and Statistics: Convert logs to JSON, CSV, or text and compute summary statistics by level, tag, thread, and client.
  • Live Monitoring: Accept live NSLogger connections over Bonjour or direct TCP/TLS, mirroring streams to files or JSON Lines.
  • Use Case: After a crash, run stats on the captured session, filter for ERROR-level messages tagged Network, and export the results as JSON for offline analysis.

Quick Start

Ask the agent to show all error-level messages from your session.rawnsloggerdata file as JSON.

Frequently Asked Questions about cli-anything-nslogger

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I read NSLogger .rawnsloggerdata files from the command line?

Use the read command with the file path to display all messages, adding flags like --level, --tag, or --search to narrow results. The --json flag outputs machine-readable messages for scripting or agent workflows.

How to filter NSLogger logs by tag or error level?

Use the filter command with --level for severity thresholds, --tag for one or more tags, --regex for pattern matching, or --thread for thread names. Combine flags and add --json to get structured output.

Can I capture live NSLogger logs from an iOS app without the Mac GUI?

Yes, the listen command publishes a Bonjour NetService matching the NSLogger desktop app behavior, so iOS apps auto-discover it over _nslogger-ssl._tcp. Direct TCP/TLS mode is available for manually configured clients.

What export formats does NSLogger log conversion support?

The export command supports JSON, CSV, and plain text formats, written to stdout or a file via --output. Filters like --level and --tag apply during export, and live capture can stream to JSON Lines.

What do NSLogger log level numbers mean?

Level 0 is ERROR, 1 is WARNING, 2 is INFO, 3 is DEBUG, and 4 is VERBOSE. Filtering with --level N shows messages at that severity and above, so --level 0 shows only errors.