logger

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 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(format string, args ...interface{})

Debug logs a debug message

func Error

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

Error logs an error message

func Info

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

Info logs an info message

func Init

func Init(level LogLevel)

Init initializes the logger with the specified level

func InitFromEnv

func InitFromEnv()

InitFromEnv initializes the logger from environment variables ROG_VERBOSE: if set to "true" or "1", enables verbose logging ROG_DEBUG: if set to "true" or "1", enables debug logging (overrides verbose)

func SetLevel

func SetLevel(level LogLevel)

SetLevel sets the current log level

func Verbose

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

Verbose logs a verbose message

Types

type LogLevel

type LogLevel int

LogLevel represents logging verbosity

const (
	// LevelSilent - no logging
	LevelSilent LogLevel = iota
	// LevelError - only errors
	LevelError
	// LevelInfo - normal operation messages
	LevelInfo
	// LevelVerbose - detailed operation messages
	LevelVerbose
	// LevelDebug - everything including debug info
	LevelDebug
)

func GetLevel

func GetLevel() LogLevel

GetLevel returns the current log level

Jump to

Keyboard shortcuts

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