golang-samber-slog
Build Go Logging Pipelines with samber/slog
Complex Go logging pipelines can duplicate records, lose buffered events, or expose sensitive data. This skill guides composition, sampling, formatting, middleware, routing, and shutdown.
๋ด ์์ด์ ํธ๋ก ์ค์น
์ด ์์ฒญ์ ์์ด์ ํธ์ ๋ณต์ฌํ์ธ์. ๊ณต์ Skill ํ์ด์ง์ ๋งค๋ํ์คํธ๊ฐ ํฌํจ๋์ด ์์ต๋๋ค.
Review the Skillstore skill "golang-samber-slog" from https://skillstore.io/skills/samber-golang-samber-slog.md and its manifest at https://skillstore.io/api/skills/samber-golang-samber-slog/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.์์ด์ ํธ๋ ๊ณ์ํด์ ๊ณํ์ ํ์ํ๊ณ ๋ณด์ ์ ์ฑ ์์ ์๊ตฌํ๋ ํ์ธ์ ์์ฒญํด์ผ ํฉ๋๋ค.
์์ด์ ํธ๊ฐ ์ฝ๊ธฐ ์ฌ์ด ๋ฆฌ์์ค
AI ์์ด์ ํธ, ํฌ๋กค๋ฌ, ์คํฌ๋ฆฝํธ๊ฐ ์ ์ฒด ํ์ด์ง ๋์ ์ ๋ฆฌ๋ ์ปจํ ์คํธ๋ง ํ์ํ ๋ ์ด ๋งํฌ๋ฅผ ์ฌ์ฉํ์ธ์.
ํ ์คํธํด ๋ณด๊ธฐ
"golang-samber-slog" ์ฌ์ฉ ์ค์ ๋๋ค. Why do error records reach both PagerDuty and Slack in my Router?
์์ ๊ฒฐ๊ณผ:
The default Router sends each record to every matching handler. Use FirstMatch and order the error rule before the warning rule.
"golang-samber-slog" ์ฌ์ฉ ์ค์ ๋๋ค. Where should sampling and PII formatting appear in my pipeline?
์์ ๊ฒฐ๊ณผ:
Place sampling first, then apply PII formatting, then route clean records to sinks. Preserve important records with level-aware routing.
"golang-samber-slog" ์ฌ์ฉ ์ค์ ๋๋ค. Why are buffered Loki records missing during shutdown?
์์ ๊ฒฐ๊ณผ:
The Loki client must stop during graceful shutdown. Register its stop operation and allow enough time to flush pending records.
๋ณด์ ๊ฐ์ฌ
์ค๊ฐ ์ํAll 69 static alerts are false positives caused by Markdown, Go syntax, placeholders, documentation links, or benign logging terminology. One medium contextual risk remains because examples enable request-body logging without sensitive-data guidance.
ํ์ธ๋ ๋ณด์ ์ฐ๋ ค ์ฌํญ (1)
์ํ ์์ธ
โ๏ธ ์ธ๋ถ ๋ช ๋ น์ด (50)
๐ ๋คํธ์ํฌ ์ ๊ทผ (8)
โก ์คํฌ๋ฆฝํธ ํฌํจ (1)
์ด ๋ณด๊ณ ์ ๊ณต์ ๋ฐ ์ธ์ฉ
๋ฒ์ ์ด ์ง์ ๋ ํ๊ฐ ๋ณด๊ณ ์, ์ค๋ฆฝ ๋ฐฐ์ง, ์๋ฒ ๋ ์นด๋ ๋ฐ ์ธ์ฉ์ ๊ณต์ ํ์ธ์. Skillstore๋ ๊ทผ๊ฑฐ๋ฅผ ๋ณด๊ณ ํ์ง๋ง ์ด Skill์ ์์ ์ฌ๋ถ๋ฅผ ํ๋จํ์ง ์์ต๋๋ค.
๋ณด๊ณ ์ ๋งํฌ ๋ณต์ฌ
https://skillstore.io/skills/samber-golang-samber-slog/audits/1?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown ๋ฐฐ์ง
[](https://skillstore.io/skills/samber-golang-samber-slog?utm_source=security_passport_badge)HTML ๋ฐฐ์ง
<a href="https://skillstore.io/skills/samber-golang-samber-slog?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/samber-golang-samber-slog/security.svg" alt="Skillstore security assessment" loading="lazy"></a>์๋ฒ ๋ ์นด๋
<iframe src="https://skillstore.io/embed/skills/samber-golang-samber-slog.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>ํ์ ์ธ์ฉ (APA ยท BibTeX ยท CFF)
APA ์ธ์ฉ
samber. (2026). golang-samber-slog security audit report (audit version 1) [Author version 1.1.2]. Skillstore. https://skillstore.io/skills/samber-golang-samber-slog/audits/1BibTeX ์ธ์ฉ
@techreport{samber-samber-golang-samber-slog-2026,
author = {samber},
title = {golang-samber-slog security audit report (audit version 1)},
institution = {Skillstore},
year = {2026},
number = {1},
url = {https://skillstore.io/skills/samber-golang-samber-slog/audits/1},
note = {Author version 1.1.2}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "golang-samber-slog security audit report (audit version 1)"
version: "1.1.2"
type: report
authors:
- name: "samber"
date-released: "2026-09-06"
url: "https://skillstore.io/skills/samber-golang-samber-slog/audits/1"
identifiers:
- type: other
value: "skillstore:samber-golang-samber-slog:audit:1"
description: "Skillstore immutable audit report identifier"
Skillstore ์ ์
์ด ์ ์์ ์ด์ ์ฆ๊ฑฐ ์ ๋ขฐ๋: ์ค๊ฐ๋ง๋ค ์ ์๋ ๊ฒ
Compose a service logging pipeline
Create a pipeline that samples noise, masks sensitive attributes, and routes records by level.
Standardize HTTP request logs
Configure framework middleware with consistent levels, request identifiers, tracing fields, and filters.
Diagnose production logging behavior
Find dropped records, duplicate routing, latency bottlenecks, and missing shutdown flushes.
์ด ํ๋กฌํํธ๋ฅผ ์ฌ์ฉํด ๋ณด์ธ์
Create a Go slog pipeline using samber/slog-multi. Send error records to Sentry and all records to standard output.
Add threshold sampling and PII formatting to my existing slog pipeline. Explain the handler order and preserve all error records.
Configure slog middleware for Gin with distinct 4xx and 5xx levels, request IDs, tracing fields, and health-check filters. Keep body logging disabled.
Review my samber/slog pipeline for duplicate routing, latency, data exposure, fallback behavior, and shutdown loss. Propose tested changes with tradeoffs.
๋ชจ๋ฒ ์ฌ๋ก
- Sample early, format sensitive attributes before routing, and define a catch-all route.
- Benchmark handler latency and test routing with in-memory handlers before deployment.
- Flush buffered backends during graceful shutdown and verify failures are observable.
ํผํ๊ธฐ
- Do not enable request or response body logging without redaction and route exclusions.
- Do not assume Router stops after the first matching handler.
- Do not use synchronous Fanout when cumulative sink latency is unacceptable.
์์ฃผ ๋ฌป๋ ์ง๋ฌธ
Which Go versions does this skill target?
Can it configure multiple logging destinations?
Does it prevent sensitive data from entering logs?
Does it install Go packages automatically?
Can it validate a production pipeline?
Why must buffered handlers stop cleanly?
๊ฐ๋ฐ์ ์ธ๋ถ ์ ๋ณด
์์ฑ์
samber๋ผ์ด์ ์ค
MIT
์์ฑ์ ๋ฒ์
v1.1.2
Skillstore ๋ฆฌ๋น์
r1
๋ฆฌํฌ์งํ ๋ฆฌ
https://github.com/samber/cc-skills-golang/tree/22c58a55a0a799b901aa251172923180bad9e010/skills/golang-samber-slog์ฐธ์กฐ
e5464e662405de6361fdde6b984f9ea865635f64
์ ์ง๋ณด์ ์ต์ ์ฑ
2026. 9. 8.
์ฌ์ฉ๋
1 ๋ค์ด๋ก๋ ยท 0 ์กฐํ
ํ์ผ ๊ตฌ์กฐ
๐ evals/
๐ evals.json
๐ references/
๐ backend-handlers.md
๐ http-middlewares.md
๐ pipeline-patterns.md
๐ SKILL.md