logutil

package
v0.37.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 14, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DuplicatingHandler

type DuplicatingHandler struct {
	// contains filtered or unexported fields
}

func NewDuplicatingHandler

func NewDuplicatingHandler(zapHandler *zapslog.Handler, logs *logbuffer.Buffer) *DuplicatingHandler

func (*DuplicatingHandler) Enabled

func (d *DuplicatingHandler) Enabled(ctx context.Context, level slog.Level) bool

func (*DuplicatingHandler) Handle

func (d *DuplicatingHandler) Handle(ctx context.Context, record slog.Record) error

func (*DuplicatingHandler) WithAttrs

func (d *DuplicatingHandler) WithAttrs(attrs []slog.Attr) slog.Handler

func (*DuplicatingHandler) WithGroup

func (d *DuplicatingHandler) WithGroup(name string) slog.Handler

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL