Documentation ¶
Index ¶
- Constants
- func Debug(tag string, format string, a ...interface{})
- func EnableColor(enable bool)
- func Error(tag string, format string, a ...interface{})
- func Info(tag string, format string, a ...interface{})
- func IsPause() bool
- func Load(logFileMaxSize int) error
- func Pause()
- func Print(tag string, level FilterLevel, format string, a ...interface{})
- func PrintHex(tag string, level FilterLevel, bytes []uint8)
- func Resume()
- func SetFilterLevel(level FilterLevel)
- func Warn(tag string, format string, a ...interface{})
- type FilterLevel
Constants ¶
View Source
const (
// LogFileSizeDefault 日志文件默认大小.单位:M字节
LogFileSizeDefault = 10
)
Variables ¶
This section is empty.
Functions ¶
func PrintHex ¶
func PrintHex(tag string, level FilterLevel, bytes []uint8)
PrintHex 打印16进制字节流 tag是标记,在字节流打印之前会打印此标记
Types ¶
type FilterLevel ¶
type FilterLevel uint8
FilterLevel 过滤日志级别类型
const ( LevelOff FilterLevel = iota LevelDebug LevelInfo LevelWarn LevelError )
过滤日志级别
Click to show internal directories.
Click to hide internal directories.