log

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogLevel

type LogLevel int
const (
	LEVEL_INFO LogLevel = iota
	LEVEL_WARN
	LEVEL_ERROR
	LEVEL_IMPORTANT
	LEVEL_VERBOSE
	LEVEL_SYSTEM
)

type Logger

type Logger struct {
	// contains filtered or unexported fields
}

func NewLogger

func NewLogger(name string, parent *Logger) Logger

func NewLoggerBase added in v0.3.0

func NewLoggerBase(name string, dir string, verbose bool) Logger

func NewLoggerEmpty

func NewLoggerEmpty() Logger

func (*Logger) Append

func (l *Logger) Append(str string, level LogLevel) string

func (*Logger) Appendf added in v0.3.0

func (l *Logger) Appendf(format string, level LogLevel, v ...any) string

func (*Logger) Close

func (l *Logger) Close()

func (*Logger) EnableVerbose

func (l *Logger) EnableVerbose()

Jump to

Keyboard shortcuts

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