log

package
v0.0.0-...-ea0ecbd Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MsgReceiveRequest = "Receive request"
)

Variables

Functions

func Debug

func Debug(ctx context.Context, msg string, args ...any)

func GrpcInterceptorLogger

func GrpcInterceptorLogger() logging.Logger

func InitDefaultLoggerWithConsole

func InitDefaultLoggerWithConsole(logOutput io.Writer)

func Logger

func Logger(ctx context.Context) *slog.Logger

func Panic

func Panic(msg string, args ...any)

func SetRootLogLevel

func SetRootLogLevel(level slog.Level)

func SlogAttrCommand

func SlogAttrCommand(cmd, workDir string, args []string, customAttrs ...slog.Attr) slog.Attr

func SlogAttrError

func SlogAttrError(err error) slog.Attr

func SlogAttrFilePath

func SlogAttrFilePath(filePath string) slog.Attr

func SlogAttrMap

func SlogAttrMap[M ~map[K]V, K comparable, V any](key string, value M) slog.Attr

func SlogAttrSlice

func SlogAttrSlice[S ~[]T, T any](key string, value S) slog.Attr

func SlogAttrSliceWithSeparator

func SlogAttrSliceWithSeparator[S ~[]T, T any](key, separator string, value S) slog.Attr

func SlogAttrUUID

func SlogAttrUUID(key string, value uuid.UUID) slog.Attr

func WithLogger

func WithLogger(ctx context.Context, l *slog.Logger) context.Context

Types

This section is empty.

Jump to

Keyboard shortcuts

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