Structured logging functions with context support LogWithContext logs a message with context and structured fields
(ctx context.Context, level slog.Level, msg string, attrs ...slog.Attr)
| 76 | |
| 77 | // LogWithContext logs a message with context and structured fields |
| 78 | func LogWithContext(ctx context.Context, level slog.Level, msg string, attrs ...slog.Attr) { |
| 79 | GetLogger().LogAttrs(ctx, level, msg, attrs...) |
| 80 | } |
| 81 | |
| 82 | // LogDebug logs a debug message with structured fields |
| 83 | func LogDebug(msg string, attrs ...slog.Attr) { |
nothing calls this directly
no test coverage detected