setup

package
v0.0.0-...-43d0979 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupConfig

func SetupConfig(logger *slog.Logger)

func SetupLogging

func SetupLogging(withColor bool, level slog.Level) *slog.Logger

Types

type CustomLogHandler

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

func NewCustomLogHandler

func NewCustomLogHandler(withColor bool, level slog.Level) *CustomLogHandler

func (CustomLogHandler) Enabled

func (h CustomLogHandler) Enabled(context context.Context, level slog.Level) bool

func (CustomLogHandler) Handle

func (h CustomLogHandler) Handle(context context.Context, record slog.Record) error

func (CustomLogHandler) WithAttrs

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

for advanced users

func (CustomLogHandler) WithGroup

func (h CustomLogHandler) WithGroup(name string) slog.Handler

for advanced users

type SprintFunc

type SprintFunc func(a ...interface{}) string

Jump to

Keyboard shortcuts

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