logger

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(format string, v ...interface{})

Debug logs a message at Debug level

func Debugf

func Debugf(format string, v ...interface{})

Debugf logs a formatted message at Debug level

func Error

func Error(format string, v ...interface{})

Error logs a message at Error level

func Errorf

func Errorf(format string, v ...interface{})

Errorf logs a formatted message at Error level

func Info

func Info(format string, v ...interface{})

Info logs a message at Info level

func Infof

func Infof(format string, v ...interface{})

Infof logs a formatted message at Info level

func Init

func Init(cfg *config.Config) error

func Trace

func Trace(format string, v ...interface{})

func Tracef

func Tracef(format string, v ...interface{})

func Warn

func Warn(format string, v ...interface{})

Warn logs a message at Warn level

func Warnf

func Warnf(format string, v ...interface{})

Warnf logs a formatted message at Warn level

Types

type Level

type Level int
const (
	DebugLevel Level = iota
	InfoLevel
	WarnLevel
	ErrorLevel
	TraceLevel
)

func (Level) String

func (l Level) String() string

type Logger

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

Jump to

Keyboard shortcuts

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