logutil

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2026 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildLogger

func BuildLogger(w io.Writer, format LogFormat, level stdslog.Level) logging.Logger

func NewSlogAdapter

func NewSlogAdapter(slogLogger *stdslog.Logger) *slogAdapter

Types

type LogFormat

type LogFormat string
var (
	TextFormat   LogFormat = "TEXT"
	JSONFormat   LogFormat = "JSON"
	PrettyFormat LogFormat = "PRETTY"
)

func (*LogFormat) MarshalText

func (l *LogFormat) MarshalText() ([]byte, error)

func (*LogFormat) UnmarshalText

func (l *LogFormat) UnmarshalText(text []byte) error

Jump to

Keyboard shortcuts

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