logging

package
v0.0.0-...-d6864b1 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2022 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 LogLevel

type LogLevel int
const (
	LogDebug LogLevel = iota
	LogInfo
	LogWarn
	LogError
	LogFatal
)

func (LogLevel) String

func (ll LogLevel) String() string

type Logger

type Logger struct {
	TypeID LoggerTypeID

	LogMutex sync.Mutex
}

func (*Logger) GetTypeID

func (l *Logger) GetTypeID() LoggerTypeID

func (*Logger) Println

func (l *Logger) Println(level LogLevel, format string, v ...interface{})

type LoggerType

type LoggerType interface {
	GetTypeID() LoggerTypeID
	Println(level LogLevel, format string, v ...interface{})
}

type LoggerTypeID

type LoggerTypeID int
const (
	LoggerTypeID_Unkonwn LoggerTypeID = iota
	LoggerTypeID_Console
	LoggerTypeID_File
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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