File: logger.go

package info (click to toggle)
golang-github-kimmachinegun-automemlimit 0.7.4-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 232 kB
  • sloc: makefile: 3
file content (13 lines) | stat: -rw-r--r-- 381 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
package memlimit

import (
	"context"
	"log/slog"
)

type noopLogger struct{}

func (noopLogger) Enabled(context.Context, slog.Level) bool  { return false }
func (noopLogger) Handle(context.Context, slog.Record) error { return nil }
func (d noopLogger) WithAttrs([]slog.Attr) slog.Handler      { return d }
func (d noopLogger) WithGroup(string) slog.Handler           { return d }