logx

package
v1.0.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	DEBUG logLevel = 1 << iota
	INFO
	WARNING
	ERROR
)

Variables

View Source
var LogHandler = NewFileLogger()

Functions

func IsDirExists

func IsDirExists(path string) bool

判断文件目录否存在

func MkdirFile

func MkdirFile(path string) error

创建文件

func NewFileLogger

func NewFileLogger() *fileLogger

func NewStdLogger

func NewStdLogger() *stdLogger

Types

type Logx

type Logx interface {
	Debug(v ...interface{})
	Debugf(format string, v ...interface{})
	Info(v ...interface{})
	Infof(format string, v ...interface{})
	Warning(v ...interface{})
	Warningf(format string, v ...interface{})
	Error(v ...interface{})
	Errorf(format string, v ...interface{})
}

Jump to

Keyboard shortcuts

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