·logging-best-practices
</>

logging-best-practices

boristane/agent-skills

记录集中于广泛事件(规范日志行)的最佳实践,以实现强大的调试和分析

1.5K安装·33热度·@boristane

安装

$npx skills add https://github.com/boristane/agent-skills --skill logging-best-practices

SKILL.md

This skill provides guidelines for implementing effective logging in applications. It focuses on wide events (also called canonical log lines) - a pattern where you emit a single, context-rich event per request per service, enabling powerful debugging and analytics.

Emit one context-rich event per request per service. Instead of scattering log lines throughout your handler, consolidate everything into a single structured event emitted at request completion.

Include fields with high cardinality (user IDs, request IDs - millions of unique values) and high dimensionality (many fields per event). This enables querying by specific users and answering questions you haven't anticipated yet.

记录集中于广泛事件(规范日志行)的最佳实践,以实现强大的调试和分析 来源:boristane/agent-skills。

查看原文

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/boristane/agent-skills --skill logging-best-practices
分类
</>开发工具
认证
收录时间
2026-02-01
更新时间
2026-02-18

快速解答

什么是 logging-best-practices?

记录集中于广泛事件(规范日志行)的最佳实践,以实现强大的调试和分析 来源:boristane/agent-skills。

如何安装 logging-best-practices?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/boristane/agent-skills --skill logging-best-practices 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用

这个 Skill 的源码在哪?

https://github.com/boristane/agent-skills

详情

分类
</>开发工具
来源
skills.sh
收录时间
2026-02-01

相关 Skills

暂无