log

package
v0.0.0-...-b1318b0 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultLogLevel = InfoLevel
)

Variables

This section is empty.

Functions

func Debug

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

func Error

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

func ErrorWrap

func ErrorWrap(err error, format string, v ...interface{}) error

func Info

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

func Log

func Log(logLevel LogLevel, format string, v ...interface{})

func Trace

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

func Warn

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

Types

type LogLevel

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

type Logger

type Logger struct {
	// contains filtered or unexported fields
}
var DefaultLogger *Logger

func NewLogger

func NewLogger() *Logger

func (*Logger) Log

func (l *Logger) Log(level LogLevel, format string, v ...interface{})

Jump to

Keyboard shortcuts

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