log

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: BSD-3-Clause-LBNL Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitializeAppLogger

func InitializeAppLogger(stdout *os.File, stderr *os.File, debug bool)

InitializeAppLogger initialize logger, invoked from main

Types

type ContextHandler added in v0.5.2

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

func NewContextHandler added in v0.5.2

func NewContextHandler(h slog.Handler, out *os.File, err *os.File, opts *tint.Options) *ContextHandler

func (*ContextHandler) Enabled added in v0.5.2

func (h *ContextHandler) Enabled(ctx context.Context, level slog.Level) bool

func (*ContextHandler) Handle added in v0.5.2

func (h *ContextHandler) Handle(ctx context.Context, r slog.Record) error

func (*ContextHandler) WithAttrs added in v0.5.2

func (h *ContextHandler) WithAttrs(attrs []slog.Attr) slog.Handler

func (*ContextHandler) WithGroup added in v0.5.2

func (h *ContextHandler) WithGroup(name string) slog.Handler

Jump to

Keyboard shortcuts

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