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.
Instalar con mi Agente
Copia esta solicitud en tu Agente. Incluye la página canónica del Skill y el manifiesto.
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.Tu Agente debe seguir mostrando su plan y solicitar cualquier confirmación exigida por la política de seguridad.
Recursos legibles por agentes
Usa estos enlaces cuando un agente de IA, crawler o script necesite contexto limpio en vez de leer la página completa.
Pruébalo
Usando "golang-samber-slog". Why do error records reach both PagerDuty and Slack in my Router?
Resultado esperado:
The default Router sends each record to every matching handler. Use FirstMatch and order the error rule before the warning rule.
Usando "golang-samber-slog". Where should sampling and PII formatting appear in my pipeline?
Resultado esperado:
Place sampling first, then apply PII formatting, then route clean records to sinks. Preserve important records with level-aware routing.
Usando "golang-samber-slog". Why are buffered Loki records missing during shutdown?
Resultado esperado:
The Loki client must stop during graceful shutdown. Register its stop operation and allow enough time to flush pending records.
Auditoría de seguridad
Riesgo medioAll 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.
Preocupaciones de seguridad confirmadas (1)
Factores de riesgo
⚙️ Comandos externos (50)
🌐 Acceso a red (8)
⚡ Contiene scripts (1)
Compartir y citar este informe
Comparte el informe de evaluación versionado, la insignia neutral, la tarjeta insertable y las citas. Skillstore presenta evidencias sin decidir si este Skill es seguro.
Copiar enlace del informe
https://skillstore.io/skills/samber-golang-samber-slog/audits/1?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportInsignia Markdown
[](https://skillstore.io/skills/samber-golang-samber-slog?utm_source=security_passport_badge)Insignia 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>Tarjeta para insertar
<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>Citas académicas (APA · BibTeX · CFF)
Cita 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/1Cita BibTeX
@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"
Puntuación de Skillstore
Por qué esta puntuación Confianza de la evidencia: MedioLo que puedes crear
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.
Prueba estos prompts
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.
Mejores prácticas
- 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.
Evitar
- 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.
Preguntas frecuentes
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?
Detalles del desarrollador
Autor
samberLicencia
MIT
Versión del autor
v1.1.2
Revisión de Skillstore
r1
Ref.
e5464e662405de6361fdde6b984f9ea865635f64
Actualidad del mantenimiento
8/9/2026
Uso
1 descargas · 0 vistas
Estructura de archivos