log

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultLogger = New(false)

Functions

func Setup

func Setup(verbose bool)

func WithLogger

func WithLogger(ctx context.Context, logger *Logger) context.Context

Types

type Logger

type Logger struct {
	*log.Logger
	// contains filtered or unexported fields
}

func FromContext

func FromContext(ctx context.Context) *Logger

func New

func New(verbose bool) *Logger

func (*Logger) Debugf

func (l *Logger) Debugf(msg string, args ...any)

func (*Logger) Errorf

func (l *Logger) Errorf(msg string, args ...any)

func (*Logger) Infof

func (l *Logger) Infof(msg string, args ...any)

func (*Logger) Success

func (l *Logger) Success(msg string, args ...any)

func (*Logger) Verbosef

func (l *Logger) Verbosef(format string, args ...any)

func (*Logger) Verboseln

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

func (*Logger) Warnf

func (l *Logger) Warnf(msg string, args ...any)

Jump to

Keyboard shortcuts

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