logger

package
v0.0.0-...-eda81a1 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	L_ERROR   string = "ERROR"
	L_DEBUG   string = "DEBUG"
	L_INFO    string = "INFO"
	L_WARNING string = "WARNING"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type LogEngine

type LogEngine interface {
	Info(threadName string, msg string, a ...any)
	Warn(threadName string, msg string, a ...any)
	Err(threadName string, msg string, a ...any)
	Debug(threadName string, msg string, a ...any)
	Close()
}

type LoggerAsync

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

func New

func (*LoggerAsync) Close

func (l *LoggerAsync) Close()

func (*LoggerAsync) Debug

func (l *LoggerAsync) Debug(threadName string, msg string, a ...any)

func (*LoggerAsync) Err

func (l *LoggerAsync) Err(threadName string, msg string, a ...any)

func (*LoggerAsync) Info

func (l *LoggerAsync) Info(threadName string, msg string, a ...any)

func (*LoggerAsync) Warn

func (l *LoggerAsync) Warn(threadName string, msg string, a ...any)

Jump to

Keyboard shortcuts

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