log

package
v0.0.0-...-016edcc Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InvalidLevel = liblog.InvalidLevel
	TraceLevel   = liblog.TraceLevel
	DebugLevel   = liblog.DebugLevel
	InfoLevel    = liblog.InfoLevel
	WarnLevel    = liblog.WarnLevel
	ErrorLevel   = liblog.ErrorLevel
	PanicLevel   = liblog.PanicLevel
	FatalLevel   = liblog.FatalLevel
)

Variables

View Source
var ParseLevel = liblog.ParseLevel

Functions

func Cleanup

func Cleanup()

func Debug

func Debug(args ...any)

func Debugf

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

func Default

func Default() liblog.Logger

func Error

func Error(args ...any)

func Errorf

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

func Fatal

func Fatal(args ...any)

func Fatalf

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

func Info

func Info(args ...any)

func Infof

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

func IsLevelEnabled

func IsLevelEnabled(lvl liblog.Level) bool

func Renderer

func Renderer() *lipgloss.Renderer

func SetDiversion

func SetDiversion(ch chan liblog.Entry)

func SetLevel

func SetLevel(lvl liblog.Level)

func Setup

func Setup()

func Trace

func Trace(args ...any)

func TraceTiming

func TraceTiming(name string) func()

func TraceTimingDone

func TraceTimingDone(name string) func()

func Tracef

func Tracef(f string, args ...interface{})

func Warn

func Warn(args ...any)

func Warnf

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

func Writer

func Writer() *os.File

Types

type Level

type Level = liblog.Level

Jump to

Keyboard shortcuts

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