logger

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debugf

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

Debugf logs debug messages

func Errorf

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

Errorf logs error messages

func GetLevel

func GetLevel() string

GetLevel returns the current log level as a string

func Infof

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

Infof logs info messages

func Init

func Init(level string)

Init initializes the logger with the specified log level

func Warnf

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

Warnf logs warning messages

Types

type LogLevel

type LogLevel int

LogLevel represents the logging level

const (
	DEBUG LogLevel = iota
	INFO
	WARN
	ERROR
)

Jump to

Keyboard shortcuts

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