NewTelemetryLogger creates a new telemetry logger that automatically prepends "[Telemetry]" to all messages
(logger *slog.Logger)
| 16 | |
| 17 | // NewTelemetryLogger creates a new telemetry logger that automatically prepends "[Telemetry]" to all messages |
| 18 | func NewTelemetryLogger(logger *slog.Logger) *telemetryLogger { |
| 19 | return &telemetryLogger{logger: logger} |
| 20 | } |
| 21 | |
| 22 | // Debug logs a debug message with "[Telemetry]" prefix |
| 23 | func (tl *telemetryLogger) Debug(msg string, args ...any) { |
no outgoing calls
no test coverage detected