logger

package
v0.0.0-...-806eab8 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

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

func Error

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

func Info

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

func SetLogFile

func SetLogFile(w io.Writer)

func SetLogLevel

func SetLogLevel(level LogLevel)

func Warn

func Warn(format string, v ...any)

Types

type HzmLogger

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

func NewLogger

func NewLogger(title string) *HzmLogger

func (*HzmLogger) Debug

func (hl *HzmLogger) Debug(format string, v ...any)

func (*HzmLogger) Error

func (hl *HzmLogger) Error(format string, v ...any)

func (*HzmLogger) Info

func (hl *HzmLogger) Info(format string, v ...any)

func (*HzmLogger) Warn

func (hl *HzmLogger) Warn(format string, v ...any)

type LogLevel

type LogLevel uint
const (
	DEBUG LogLevel = 1 << iota
	INFO
	WARN
	ERROR
)

Jump to

Keyboard shortcuts

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