Documentation ¶
Index ¶
- Constants
- func IsIP(str string) bool
- func IsPort(str string) bool
- func LogD(tag string, format string, a ...interface{})
- func LogE(tag string, format string, a ...interface{})
- func LogF(tag string, format string, a ...interface{})
- func LogI(tag string, format string, a ...interface{})
- func LogP(tag string, format string, a ...interface{})
- func PrintMemUsage(w io.Writer)
- func SetLogLevel(level LogLevel)
- func SetLogLevelString(level string)
- type LogLevel
- type Logger
- type MPatternMix
- type MRegexp
- type MRegexpMap
- type MRegexpMatch
- type MRegexpPair
- type MRegexpPairList
Constants ¶
View Source
const ( LogTimeFormat = "2006-01-02 15:04:05.000000" LogFuncName = false )
Variables ¶
This section is empty.
Functions ¶
func PrintMemUsage ¶
func SetLogLevel ¶
func SetLogLevel(level LogLevel)
func SetLogLevelString ¶
func SetLogLevelString(level string)
Types ¶
type MPatternMix ¶
type MPatternMix struct {
ReList MRegexpPairList
}
func NewMPatternMix ¶
func NewMPatternMix(patterns map[string]string) *MPatternMix
type MRegexp ¶
func (*MRegexp) FindStringSubmatchMap ¶
func (r *MRegexp) FindStringSubmatchMap(s string, group_prefix string) MRegexpMatch
type MRegexpMap ¶
func NewMRegexpMap ¶
func NewMRegexpMap(patterns map[string]string) MRegexpMap
type MRegexpMatch ¶
type MRegexpPair ¶
type MRegexpPair struct {
First, Second *MRegexp
}
type MRegexpPairList ¶
type MRegexpPairList []*MRegexpPair
Click to show internal directories.
Click to hide internal directories.