mirror of
https://github.com/andwati/telecom-platform.git
synced 2026-10-26 22:52:16 +00:00
feat: Add structured logging with logrus and configurable output formats
- Add sirupsen/logrus v1.9.4 dependency to go.mod - Add logging package with global Logger instance - Add Config struct with Level, Format, and Output fields - Add DefaultConfig with LOG_LEVEL, LOG_FORMAT, and LOG_OUTPUT environment variables - Add Init function with level parsing, JSON/text formatter selection, and stdout/stderr output - Add InitWithDefaults helper function - Add WithField, WithFields, and WithError helper
This commit is contained in:
@@ -154,6 +154,7 @@ require (
|
||||
github.com/quic-go/qpack v0.6.0 // indirect
|
||||
github.com/quic-go/quic-go v0.59.0 // indirect
|
||||
github.com/rabbitmq/amqp091-go v1.11.0
|
||||
github.com/sirupsen/logrus v1.9.4
|
||||
github.com/stripe/stripe-go/v82 v82.5.1
|
||||
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
|
||||
github.com/ugorji/go/codec v1.3.1 // indirect
|
||||
|
||||
Reference in New Issue
Block a user