logger

package
v0.0.0-...-5af7c8d Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogLevel

type LogLevel int
const (
	DEBUG LogLevel = iota // Logs detailed debugging information.
	INFO                  // Logs general information messages.
	WARN                  // Logs warning messages indicating potential issues.
	ERROR                 // Logs error messages indicating failures or significant issues.
)

func ParseLevel

func ParseLevel(level string) LogLevel

type Logger

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

func NewLogger

func NewLogger(level LogLevel) *Logger

func (*Logger) Debug

func (l *Logger) Debug(msg string, args ...interface{})

func (*Logger) Error

func (l *Logger) Error(msg string, args ...interface{})

func (*Logger) Info

func (l *Logger) Info(msg string, args ...interface{})

func (*Logger) SetLevel

func (l *Logger) SetLevel(level LogLevel)

func (*Logger) Warn

func (l *Logger) Warn(msg string, args ...interface{})

Jump to

Keyboard shortcuts

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