log

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LevelDebug = "debug"
	LevelInfo  = "info"
	LevelWarn  = "warn"
	LevelError = "error"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger added in v0.4.0

type Logger struct {
	// contains filtered or unexported fields
}

func NewLogger added in v0.4.0

func NewLogger(level string, noColor bool) *Logger

func (*Logger) DebugContext added in v0.4.0

func (l *Logger) DebugContext(ctx context.Context, format string, a ...any)

func (*Logger) ErrorContext added in v0.4.0

func (l *Logger) ErrorContext(ctx context.Context, format string, a ...any)

func (*Logger) InfoContext added in v0.4.0

func (l *Logger) InfoContext(ctx context.Context, format string, a ...any)

func (*Logger) WarnContext added in v0.4.0

func (l *Logger) WarnContext(ctx context.Context, format string, a ...any)

Jump to

Keyboard shortcuts

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