Borrowing it
Nothing to install: this file belongs to y5-snowies/nourish. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/y5-snowies/nourish/upstream-integration/.claude/skills/logging/SKILL.mdgit clone --depth 1 https://github.com/y5-snowies/nourishWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/y5-snowies/nourish/logging)<a href="https://agentmods.dev/skills/y5-snowies/nourish/logging"><img src="https://agentmods.dev/badge/skills/y5-snowies/nourish/logging/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/y5-snowies/nourish/logging"><img src="https://agentmods.dev/badge/skills/y5-snowies/nourish/logging.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00083 | $0.00803 |
| Opus 5.5 | $0.00033 | $0.00321 |
| Sonnet 5.5 | $0.00017 | $0.00161 |
| Haiku 4.5 | $0.00008 | $0.00080 |
Grade A, and why
logging scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 66 lines — stays where its author put it; the contents beside it link to each section on GitHub.
y5 logging
y5 has its own structured logging system. Never use tracing, log, or println!/
eprintln! for diagnostics in compositor code. Use the macros from
compositor_model_debug_instance_record. Full reference: that crate's module docs
(compositor.model/model.debug/debug.instance/instance.record).
The rule
- Levels:
error!,warn!,info!,trace!— sameformat!args astracing. - Fatal:
abort!("msg {x}")— logs at Error and panics (synchronously flushed first). - No
tracing/log/tracing-subscriberdeps in new/changed crates. If a crate you touch still imports them only for logging, migrate the call sites and drop the deps.
Wiring a crate to log (one-time per crate)
The add-crate template already inserts this. If a crate lacks it, add to its lib.rs
(after any leading #![...] inner attributes):
#[macro_use]
extern crate compositor_model_debug_instance_record;
and ensure its Cargo.toml has (it resolves via the workspace links — run compositor.workspace/link.all.sh if
you just added the dep to a workspace that didn't have it):
compositor_model_debug_instance_record = { workspace = true }
Then call the macros from any module in the crate — no per-module use needed. The crate name
and function path are attached automatically as filter tags.
Migrating tracing
tracing::info!(...) → info!(...) (likewise error!/warn!/trace!). Confirm the two
lib.rs lines above exist, then remove tracing + tracing-subscriber from the crate's
Cargo.toml. Grep the crate for tracing:: to be sure none remain.
Levels: two independent controls
- Compile-time: cargo features
error/warn/info/traceon the record crate (set by the top-levelexecutedep). A disabled level compiles to nothing.abort!is never stripped. - Runtime:
COMPOSITOR_LOG_LEVEL(e.g.info,warn,error,trace) selects what is emitted among compiled-in levels.
Viewing logs
Records stream over gRPC (/tmp/y5-compositor-logs.sock) to the compositor.developer/developer.tool
Tauri viewer (filter by crate/function/level, timeline, presets, dumps). Run the compositor with
COMPOSITOR_LOG_LEVEL set, then cd compositor.developer/developer.tool/developer.tool.window/logs && npm run tauri dev. They also
print dmesg-style to the compositor's stderr.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 66 lines · 83 tokens per session scan A 4d945c4bf725
logging is a skill published in the GitHub repository y5-snowies/nourish (241 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 83 tokens to every session and 803 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
logging compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| loggingy5-snowies/nourish | Skill | 241 | 2mo ago | Apache-2.0 | A | 83 | Claude Code |
| agentsight-bugfixalibaba/anolisa | Skill | 603 | 1mo ago | Apache-2.0 | A | 67 | Claude Code, Codex |
| Z.A.E.B.A.L.: profanity-triggered self-audit for agentshowdeploy/deploychan_mcp | Skill | 21 | 9d ago | MIT | A | 85 | Claude Code |
| gearsystem-debuggingdrhelius/Gearsystem | Skill | 399 | 2d ago | GPL-3.0 | A | 178 | Claude Code, Codex |
| typetype-architecturewhynusn/typetype | Skill | 14 | 19d ago | MIT | A | 35 | Claude Code, Codex |
| typetype-adding-featurewhynusn/typetype | Skill | 14 | 19d ago | MIT | A | 36 | Claude Code, Codex |
| typetype-coding-standardswhynusn/typetype | Skill | 14 | 19d ago | MIT | A | 35 | Claude Code, Codex |