关于 pino
Pino 是 JavaScript JSON 日志记录器;此参考技能覆盖其官方文档和 API。它帮助开发者查找日志配置、传输、集成与故障排查资料。
主要功能
- 01覆盖 Pino API 与类型定义
- 02说明日志脱敏与传输配置
- 03索引框架集成及生态包
- 04涵盖日志筛选与故障排查
适用场景
- 01配置日志级别与输出目标
- 02屏蔽日志中的敏感信息
- 03查找 Fastify 或 Express 集成资料
- 04处理日志筛选或编码问题
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ fandhe-ai/ agent-reference-skills --skill pino安装后在 Claude Code 中输入/pino确认已加载。
包含的文件
除 SKILL.md 外,安装时一起下载的参考资料和脚本。
references/api/destination.mdinterfaces-and-types.mdlogger-child.mdlogger-instance.mdlogger-methods.mdlogging-method-parameters.mdoptions.mdpino-function.mdREADME.mdstatics.mdreferences/features/asynchronous.mdbrowser.mdbundling.mdchild-loggers.mddiagnostics.mdpretty-printing.mdREADME.mdredaction.mdtransports.mdreferences/help/avoid-message-conflict.mdbest-performance-stdout.mdduplicate-keys.mdgoogle-cloud-logging.mdgrafana-loki-kubernetes.mdlog-filtering.mdlog-levels-as-labels.mdlog-rotation.mdlog-to-different-streams.mdlts.mdpino-with-debug.md详细介绍
Pino — 超高速 JSON 日志记录器参考
涵盖 Pino 官方文档中的所有 API 的技能。 根据用户的任务读取合适的 README.md,并从中找到相应的单个文件。
适用版本:pino v10.4.0(GitHub 标签 v10.4.0 / 2026-10-02;docs 为同一标签下的 docs/*.md 和 pino.d.ts)。
目录结构
skills/pino/
SKILL.md
references/
api/
README.md
pino-function.md
options.md
destination.md
logger-instance.md
logger-methods.md
logger-child.md
logging-method-parameters.md
statics.md
interfaces-and-types.md
features/
README.md
browser.md
redaction.md
child-loggers.md
transports.md
asynchronous.md
pretty-printing.md
diagnostics.md
bundling.md
integrations/
README.md
web-frameworks.md
ecosystem.md
help/
README.md
avoid-message-conflict.md
best-performance-stdout.md
duplicate-keys.md
google-cloud-logging.md
log-filtering.md
log-levels-as-labels.md
log-rotation.md
lts.md
pino-with-debug.md
reopening-log-files.md
saving-to-multiple-files.md
testing.md
transports-and-systemd.md
unicode-and-windows.md
log-to-different-streams.md
grafana-loki-kubernetes.md
samples/
README.md
basic-logging.md
child-loggers.md
log-levels.md
redaction.md
transports.md
async-logging.md
web-frameworks.md
testing.md
scripts/
README.md
install.md
pretty-printing.md
transports.md
filtering.md
testing.md
log-rotation.md
探索步骤
根据任务找到对应类别,再通过类别的 README.md 确定目标页面:
- 在下方映射表中查找与任务对应的类别
- 参阅该类别的
references/{category}/README.md,确定目标页面 - Read 对应的
.md页面,查看详情
任务 → 类别映射
| 任务 | 类别 | 参考 README |
|---|---|---|
| 想了解 pino() 函数的用法、查看 options | api | references/api/README.md |
| 想了解 Logger 实例的方法、child logger、Statics | api | references/api/README.md |
| 想查看类型定义和接口 | api | references/api/README.md |
| 想通过 redaction 遮蔽机密信息 | features | references/features/README.md |
| 想通过 transport 切换输出目标、使用 pino-pretty | features | references/features/README.md |
| 想了解异步日志记录、浏览器支持、diagnostics | features | references/features/README.md |
| 想使用 webpack 等工具进行打包 | features | references/features/README.md |
| 想了解浏览器中不可用的 API(destination / transport / multistream)和 isomorphic 代码 | features | references/features/README.md |
| 想了解 transport 的级别过滤,以及多个 targets 下 formatters.level 的限制 | features | references/features/README.md |
| 想在日志中包含不受信任的对象(顶层键冲突) | api | references/api/README.md |
| 想了解与 Fastify / Express 的集成方法 | integrations | references/integrations/README.md |
| 想了解生态系统和相关软件包 | integrations | references/integrations/README.md |
| 想了解日志轮转、过滤和测试 | help | references/help/README.md |
| 想解决故障(重复键、字符编码、systemd) | help | references/help/README.md |
| 想了解如何将输出分发到多个流,以及与 Grafana Loki / Kubernetes 的集成 | help | references/help/README.md |
| 想了解典型用法 | samples | samples/README.md |
| 想了解安装和 CLI 命令 | scripts | scripts/README.md |
评论
支持 Markdown