MCPcopy
hub / github.com/pocketbase/pocketbase / SetLevel

Method SetLevel

tools/logger/batch_handler.go:195–199  ·  view source on GitHub ↗

SetLevel updates the handler options level to the specified one.

(level slog.Level)

Source from the content-addressed store, hash-verified

193
194// SetLevel updates the handler options level to the specified one.
195func (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.
202func (h *BatchHandler) WriteAll(ctx context.Context) error {

Callers 2

TestBatchHandlerSetLevelFunction · 0.95
initLoggerMethod · 0.80

Calls

no outgoing calls

Tested by 1

TestBatchHandlerSetLevelFunction · 0.76