Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

structured-error-logging

Skill by facebook

Adds or reviews structured error logging in the EdenFS daemon (C++) using the ErrorLogger and EdenErrorInfo system. It feeds rows into the edenfs_errors table for developers working on EdenFS failure paths.

  • Score 84
  • 7.3k stars
  • GPL-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install structured-error-logging

Built from the published package, never by AI.

git clone --depth 1 https://github.com/facebook/sapling /tmp/sapling && mkdir -p ~/.claude/skills && cp -r /tmp/sapling/eden/.llms/skills/structured-error-logging ~/.claude/skills/structured-error-logging

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install structured-error-logging in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill guides an AI assistant through structured error logging in the EdenFS daemon. Unlike XLOG(ERR, ...), which only writes to the local log file, the ErrorLogger writes rows to the edenfs_errors table (Hive and Scuba) with queryable columns such as component, error code and name, mount point, inode and stack trace. The skill sets out rules for stack-trace provenance, choosing the right component factory, stable errorType strings, filtering expected errors such as ENOENT, and config gating.

It is written for EdenFS contributors who write catch blocks, handle boxed or async exceptions such as folly::Try and exception_wrapper, or debug a wrong stack trace or component. It also covers testing with a capturing logger and the debugLogError Thrift endpoint.

Written from the project's SKILL.md and checked against it.

What it can do

  • Catch block loggingShows how to log a caught exception with a component factory, optional context and an errorType.
  • Stack-trace provenance rulesExplains when to pass the exception directly and when to use fromExceptionWithoutTrace.
  • Component selectionGuides choosing the factory for the subsystem where the failure originated.
  • errorType namingSets rules for stable, lower_snake_case error subtypes that dashboards and alerts depend on.
  • Noise filteringAdvises skipping expected control-flow errors such as a missing path returning ENOENT.
  • Gating and config flagsDescribes telemetry:enable-error-logging and telemetry:enable-stack-trace-upload.
  • Testing guidanceCovers injecting a capturing ErrorLogger and the debugLogError Thrift smoke test.

What you need

  • EdenFS C++ codebase (eden/fs)
  • XplatLogger available for routing to Hive and Scuba

Try asking

  • Add structured error logging to this catch block in the EdenFS daemon.
  • Review this boxed exception handler for a wrong stack trace in EdenFS.
  • Which EdenErrorInfo component should I use for this inode load failure?

Good to know

  • If XplatLogger is unavailable, ErrorLogger is disabled, with no legacy Scribe fallback.
  • Trace capture is per thread and holds only the most recent throw, so passing ex elsewhere attaches a wrong trace.
  • log() consumes the builder, so create() is not called directly.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: eden/.llms/skills/structured-error-logging/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md7 KB

Alternatives to structured-error-logging

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

structured-error-logging: common questions

What is the edenfs_errors table?

The source says EdenFS records daemon-side failures as structured rows in the edenfs_errors table, stored in Hive and Scuba via the ErrorLogger.

When should I use fromExceptionWithoutTrace?

The source says to use it for boxed exceptions, cross-thread continuations, rethrown or reconstructed exceptions, and deferred logging, where passing ex would attach a wrong trace.

How do I turn error logging on or off?

The source says the telemetry:enable-error-logging config flag is the master switch, and log() does nothing when it is disabled.

How do I install structured-error-logging?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is structured-error-logging free?

The code is published under the GPL-2.0 licence. The service it connects to may have its own pricing.

Is structured-error-logging safe to use?

It scores 84 of 100. Grades: maintenance A, licence C, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to structured-error-logging?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

structured-error-logging Install

Add to stack

Loading.