func NewTextFormatter(name string) *TextFormatter {
	var buildKV = func(level string) string {
		buf := pool.Get()
		defer pool.Put(buf)
		buf.WriteString(Separator)
		buf.WriteString("_n=")
		buf.WriteString(name)

		buf.WriteString(Separator)
		buf.WriteString("_l=")
		buf.WriteString(level)

		buf.WriteString(Separator)
		buf.WriteString("_m=")

		return buf.String()
	}
	itoaLevelMap := map[int]string{
		LevelDebug: buildKV(LevelMap[LevelDebug]),
		LevelWarn:  buildKV(LevelMap[LevelWarn]),
		LevelInfo:  buildKV(LevelMap[LevelInfo]),
		LevelError: buildKV(LevelMap[LevelError]),
		LevelFatal: buildKV(LevelMap[LevelFatal]),
	}
	return &TextFormatter{itoaLevelMap: itoaLevelMap, name: name}
}
// NewTextFormatter returns a new instance of TextFormatter. SetName
// must be called befored using it.
NewTextFormatter returns a new instance of TextFormatter. SetName
must be called befored using it.
// NewTextFormatter returns a new instance of TextFormatter . SetName // must be called befored using it .
func NewTextFormatter(name string) *TextFormatter {
	var buildKV = func(level string) string {
		buf := pool.Get()
		defer pool.Put(buf)
		buf.WriteString(Separator)
		buf.WriteString("_n=")
		buf.WriteString(name)
		buf.WriteString(Separator)
		buf.WriteString("_l=")
		buf.WriteString(level)
		buf.WriteString(Separator)
		buf.WriteString("_m=")
		return buf.String()
	}
	itoaLevelMap := map[int]string{
		LevelDebug: buildKV(LevelMap[LevelDebug]),
		LevelWarn:  buildKV(LevelMap[LevelWarn]),
		LevelInfo:  buildKV(LevelMap[LevelInfo]),
		LevelError: buildKV(LevelMap[LevelError]),
		LevelFatal: buildKV(LevelMap[LevelFatal]),
	}
	return &TextFormatter{itoaLevelMap: itoaLevelMap, name: name}
}
func NewTextFormatter ( name string ) * TextFormatter { var buildKV = func ( level string ) string { buf := pool . Get ( ) defer pool . Put ( buf ) buf . WriteString ( Separator ) buf . WriteString ( " " ) buf . WriteString ( name ) buf . WriteString ( Separator ) buf . WriteString ( " " ) buf . WriteString ( level ) buf . WriteString ( Separator ) buf . WriteString ( " " ) return buf . String ( ) } itoaLevelMap := map [ int ] string { LevelDebug : buildKV ( LevelMap [ LevelDebug ] ) , LevelWarn : buildKV ( LevelMap [ LevelWarn ] ) , LevelInfo : buildKV ( LevelMap [ LevelInfo ] ) , LevelError : buildKV ( LevelMap [ LevelError ] ) , LevelFatal : buildKV ( LevelMap [ LevelFatal ] ) , } return & TextFormatter { itoaLevelMap : itoaLevelMap , name : name } }
NewTextFormatter returns a new instance of TextFormatter.
NewTextFormatter returns a new instance of TextFormatter .