log

package
v0.0.0-...-0e73c6a Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContextLogKey

type ContextLogKey struct{}

type LogIDKey

type LogIDKey struct{}

type Logger

type Logger struct {
	*slog.Logger
}

func Default

func Default() *Logger

func FromContext

func FromContext(ctx context.Context) *Logger

func New

func New() *Logger

func (*Logger) Auto

func (l *Logger) Auto(msg string, err error, args ...any)

func (*Logger) WithContext

func (l *Logger) WithContext(ctx context.Context) context.Context

func (*Logger) WithFields

func (l *Logger) WithFields(args ...any) *Logger

func (*Logger) WithLogID

func (l *Logger) WithLogID(ctx context.Context) *Logger

Jump to

Keyboard shortcuts

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