StructuredError logs an error message with structured fields
(msg string, attrs ...slog.Attr)
| 96 | |
| 97 | // StructuredError logs an error message with structured fields |
| 98 | func StructuredError(msg string, attrs ...slog.Attr) { |
| 99 | GetLogger().LogAttrs(context.Background(), slog.LevelError, msg, attrs...) |
| 100 | } |
| 101 | |
| 102 | // Convenience functions for common operations |
| 103 |
no test coverage detected