log

package
v0.2.27 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(args ...interface{})

Debug logs a debug message

func Debugf

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

Debugf logs a formatted debug message

func Error

func Error(args ...interface{})

Error logs an error message

func Errorf

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

Errorf logs a formatted error message

func Fatal

func Fatal(args ...interface{})

Fatal logs at error level and exits

func Fatalf

func Fatalf(format string, args ...interface{})

Fatalf logs at error level and exits

func GetLevel

func GetLevel() string

GetLevel returns the current log level as a string

func Info

func Info(args ...interface{})

Info logs an info message

func Infof

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

Infof logs a formatted info message

func Init

func Init(level string)

Init initializes the logger with the specified level

func IsDebugEnabled

func IsDebugEnabled() bool

IsDebugEnabled returns true if debug logging is enabled

func Printf

func Printf(format string, args ...interface{})

Printf logs at info level (for compatibility)

func Println

func Println(args ...interface{})

Println logs at info level (for compatibility)

func Warn

func Warn(args ...interface{})

Warn logs a warning message

func Warnf

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

Warnf logs a formatted warning message

Types

type Level

type Level int

Level represents the logging level

const (
	LevelDebug Level = iota
	LevelInfo
	LevelWarn
	LevelError
)

Jump to

Keyboard shortcuts

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