mcpField
P
pino

pino

github.com/fandhe-ai开发4104 次安装4 天前更新
代码仓库

关于 pino

Pino 是 JavaScript JSON 日志记录器;此参考技能覆盖其官方文档和 API。它帮助开发者查找日志配置、传输、集成与故障排查资料。

主要功能

  1. 01覆盖 Pino API 与类型定义
  2. 02说明日志脱敏与传输配置
  3. 03索引框架集成及生态包
  4. 04涵盖日志筛选与故障排查

适用场景

  1. 01配置日志级别与输出目标
  2. 02屏蔽日志中的敏感信息
  3. 03查找 Fastify 或 Express 集成资料
  4. 04处理日志筛选或编码问题

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/fandhe-ai/agent-reference-skills --skill pino

安装后在 Claude Code 中输入/pino确认已加载。

包含的文件

除 SKILL.md 外,安装时一起下载的参考资料和脚本。

references/api/
destination.md
interfaces-and-types.md
logger-child.md
logger-instance.md
logger-methods.md
logging-method-parameters.md
options.md
pino-function.md
README.md
statics.md
references/features/
asynchronous.md
browser.md
bundling.md
child-loggers.md
diagnostics.md
pretty-printing.md
README.md
redaction.md
transports.md
references/help/
avoid-message-conflict.md
best-performance-stdout.md
duplicate-keys.md
google-cloud-logging.md
grafana-loki-kubernetes.md
log-filtering.md
log-levels-as-labels.md
log-rotation.md
log-to-different-streams.md
lts.md
pino-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 确定目标页面:

  1. 在下方映射表中查找与任务对应的类别
  2. 参阅该类别的 references/{category}/README.md,确定目标页面
  3. Read 对应的 .md 页面,查看详情

任务 → 类别映射

任务类别参考 README
想了解 pino() 函数的用法、查看 optionsapireferences/api/README.md
想了解 Logger 实例的方法、child logger、Staticsapireferences/api/README.md
想查看类型定义和接口apireferences/api/README.md
想通过 redaction 遮蔽机密信息featuresreferences/features/README.md
想通过 transport 切换输出目标、使用 pino-prettyfeaturesreferences/features/README.md
想了解异步日志记录、浏览器支持、diagnosticsfeaturesreferences/features/README.md
想使用 webpack 等工具进行打包featuresreferences/features/README.md
想了解浏览器中不可用的 API(destination / transport / multistream)和 isomorphic 代码featuresreferences/features/README.md
想了解 transport 的级别过滤,以及多个 targets 下 formatters.level 的限制featuresreferences/features/README.md
想在日志中包含不受信任的对象(顶层键冲突)apireferences/api/README.md
想了解与 Fastify / Express 的集成方法integrationsreferences/integrations/README.md
想了解生态系统和相关软件包integrationsreferences/integrations/README.md
想了解日志轮转、过滤和测试helpreferences/help/README.md
想解决故障(重复键、字符编码、systemd)helpreferences/help/README.md
想了解如何将输出分发到多个流,以及与 Grafana Loki / Kubernetes 的集成helpreferences/help/README.md
想了解典型用法samplessamples/README.md
想了解安装和 CLI 命令scriptsscripts/README.md

评论

支持 Markdown