logger

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogger

func NewLogger(args *Args) *slog.Logger

Types

type Args

type Args struct {
	LogLevel string `json:"level" yaml:"level"`
	Format   string `json:"format" yaml:"format"`
	Writer   io.Writer
}

func DefaultLogArgs

func DefaultLogArgs() *Args

func (*Args) Level

func (l *Args) Level() slog.Level

func (*Args) Merge

func (l *Args) Merge(other *Args) *Args

Jump to

Keyboard shortcuts

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