Skip to content

Add structured logging with slog#49

Closed
forkline-bot[bot] wants to merge 3 commits intomainfrom
feat/add-structured-logging
Closed

Add structured logging with slog#49
forkline-bot[bot] wants to merge 3 commits intomainfrom
feat/add-structured-logging

Conversation

@forkline-bot
Copy link

@forkline-bot forkline-bot bot commented Feb 20, 2026

Summary

  • Implement structured logging using Go's built-in slog package
  • Add log level configuration (--log-level: debug, info, warn, error)
  • Add JSON output option (--log-json)
  • Add request ID middleware for HTTP request tracing (--log-request-id)
  • Update all server components to use structured logging
  • Update service, models, and router packages to use structured logging
  • Add request ID middleware for HTTP requests

This change improves logging by:

  1. Providing structured JSON/text output instead of plain text
  2. Allowing log level filtering for production debugging
  3. Adding request ID tracking for HTTP request tracing
  4. Using consistent structured logging across all components

forkline-dev[bot] added 3 commits February 20, 2026 15:27
- Implement structured logging using Go's built-in slog package
- Add log level configuration (--log-level: debug, info, warn, error)
- Add JSON output option (--log-json)
- Add request ID middleware for HTTP request tracing (--log-request-id)
- Update all server components to use structured logging
- Update service, models, and router packages to use structured logging
- Add request ID middleware for HTTP requests
- Fix unused args parameter in WithContext
- Disable var-naming rule in revive for metrics package name conflict
@dcarrillo dcarrillo closed this Feb 20, 2026
@dcarrillo dcarrillo deleted the feat/add-structured-logging branch February 20, 2026 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant