logger

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package logger provides functions for logging messages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close()

func ConfigSet

func ConfigSet(key, value string)

func Debug

func Debug(format string, args ...any)

func Error

func Error(format string, args ...any)

func Errorln

func Errorln(args ...any)

func Info

func Info(format string, args ...any)

func ServerRunning

func ServerRunning(url string)

func SetLogLevel

func SetLogLevel(l LogLevel)

func SetNoColor

func SetNoColor(disable bool)

func SetupFile

func SetupFile(logFilePath string, disableColor ...bool) error

func Success

func Success(format string, args ...any)

func Warning

func Warning(format string, args ...any)

Types

type LogLevel

type LogLevel int
const (
	LevelDebug LogLevel = iota + 1
	LevelInfo
	LevelSuccess
	LevelWarning
	LevelError
)

Jump to

Keyboard shortcuts

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