logger

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2025 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultLogger

type DefaultLogger struct {
	LogLevel LogLevel
}

func (*DefaultLogger) Debug

func (l *DefaultLogger) Debug(format string, args ...any)

func (*DefaultLogger) Dump

func (l *DefaultLogger) Dump(dumped []byte, format string, args ...any)

func (*DefaultLogger) Error

func (l *DefaultLogger) Error(format string, args ...any)

func (*DefaultLogger) Failed

func (l *DefaultLogger) Failed(format string, args ...any)

func (*DefaultLogger) Fatal

func (l *DefaultLogger) Fatal(format string, args ...any)

func (*DefaultLogger) Info

func (l *DefaultLogger) Info(format string, args ...any)

func (*DefaultLogger) SetLogLevel

func (l *DefaultLogger) SetLogLevel(level LogLevel)

func (*DefaultLogger) Success

func (l *DefaultLogger) Success(format string, args ...any)

func (*DefaultLogger) Warning

func (l *DefaultLogger) Warning(format string, args ...any)

type Inst

type Inst interface {
	SetLogLevel(LogLevel)
	Fatal(format string, args ...any)
	Error(format string, args ...any)
	Success(format string, args ...any)
	Failed(format string, args ...any)
	Warning(format string, args ...any)
	Info(format string, args ...any)
	Debug(format string, args ...any)
	Dump(dumped []byte, format string, args ...any)
}

type LogLevel

type LogLevel int
const (
	Fatal LogLevel = iota - 3
	Error
	Announcement
	Warning
	Info
	Debug
)

Jump to

Keyboard shortcuts

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