log

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const LOG_DIR = "./log"

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 {
	Parent *Logger
	// contains filtered or unexported fields
}

func NewLogger

func NewLogger(name string) Logger

func NewLoggerEmpty

func NewLoggerEmpty() Logger

func (*Logger) Append

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

func (*Logger) Close

func (l *Logger) Close()

func (Logger) EnableVerbose

func (l Logger) EnableVerbose() Logger

Jump to

Keyboard shortcuts

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