SetLevel updates the handler options level to the specified one.
(level slog.Level)
| 193 | |
| 194 | // SetLevel updates the handler options level to the specified one. |
| 195 | func (h *BatchHandler) SetLevel(level slog.Level) { |
| 196 | h.mux.Lock() |
| 197 | h.options.Level = level |
| 198 | h.mux.Unlock() |
| 199 | } |
| 200 | |
| 201 | // WriteAll writes all accumulated Log entries and resets the batch queue. |
| 202 | func (h *BatchHandler) WriteAll(ctx context.Context) error { |
no outgoing calls