MCPcopy Index your code
hub / github.com/pocketbase/pocketbase / Enabled

Method Enabled

tools/logger/batch_handler.go:93–95  ·  view source on GitHub ↗

Enabled reports whether the handler handles records at the given level. The handler ignores records whose level is lower.

(ctx context.Context, level slog.Level)

Source from the content-addressed store, hash-verified

91//
92// The handler ignores records whose level is lower.
93func (h *BatchHandler) Enabled(ctx context.Context, level slog.Level) bool {
94 return level >= h.options.Level.Level()
95}
96
97// WithGroup returns a new BatchHandler that starts a group.
98//

Calls

no outgoing calls