Skip to main content

logging-patterns

Common logging patterns and practices. This skill is designed to be included in composite skills via the 'includes' feature.

소스 정보

저장소
Dicklesworthstone/meta_skill
최근 소스 활동
2026년 1월 16일 15:56
감지된 SKILL.md 언어
영어
스타
206
포크
39

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
id
logging-patterns
name
Logging Patterns
description
Common logging patterns and practices. This skill is designed to be included in composite skills via the 'includes' feature.
tags
["logging","observability","example"]
# Logging Patterns Foundational logging practices for observable applications. ## Rules - Use structured logging (key-value pairs, not interpolated strings) - Include request/correlation IDs in all log entries - Log at appropriate levels (DEBUG, INFO, WARN, ERROR) - Include enough context to debug issues without the code - Don't log sensitive information (passwords, tokens, PII) ## Pitfalls - Logging sensitive data (passwords, API keys, PII) - Inconsistent log levels across the codebase - Missing correlation IDs in distributed systems - Logging at wrong levels (DEBUG in prod, ERROR for non-errors) ## Examples ```rust // Structured logging with tracing use tracing::{info, error, instrument}; #[instrument(skip(password))] fn authenticate(user_id: &str, password: &str) -> Result<Token> { info!(user_id, "authentication attempt"); match verify_credentials(user_id, password) { Ok(token) => { info!(user_id, "authentication successful"); Ok(token) } Err(e) => { error!(user_id, error = %e, "authentication failed"); Err(e) } } } ```
GitHub에서 보기