GLog

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetWriter

func GetWriter() io.Writer

func Init

func Init(sign string, logFile string, logLevel int, isPrint bool, maxFileSize int, bakFilePath string, bakFileMaxCount int) log.ILogService

func LevelString added in v0.0.6

func LevelString(level int) string

func SetLevel added in v0.0.6

func SetLevel(logLevel LogLevel) log.ILogService

Types

type LogLevel added in v0.0.6

type LogLevel int
const (
	LogLevelError LogLevel = iota + 1
	LogLevelWarn
	LogLevelInfo
	LogLevelDebug
	LogLevelTrace
)

func (LogLevel) String added in v0.0.6

func (level LogLevel) String() string

Jump to

Keyboard shortcuts

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