util_log

package
v1.27.7 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureGcpCompatibleJsonDefaultSlog

func ConfigureGcpCompatibleJsonDefaultSlog(
	cfg LogCfg,
)

func NewGcpCompatibleJsonSlog

func NewGcpCompatibleJsonSlog(
	cfg LogCfg,
) *slog.Logger

Types

type LogCfg

type LogCfg struct {
	MinLevel        slog.Level
	IncludeSrcLines bool
	LoggerName      string
}

func (LogCfg) Default

func (l LogCfg) Default() LogCfg

Jump to

Keyboard shortcuts

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