DefaultLogConfig returns a default logger configuration
()
| 28 | |
| 29 | // DefaultLogConfig returns a default logger configuration |
| 30 | func DefaultLogConfig() *LogConfig { |
| 31 | return &LogConfig{ |
| 32 | Level: slog.LevelInfo, |
| 33 | Format: "text", |
| 34 | AddSource: false, |
| 35 | ServiceName: "lambda-nat-proxy", |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | // InitLogger initializes the structured logger |
| 40 | func InitLogger(config *LogConfig) { |
no outgoing calls
no test coverage detected