Documentation
¶
Index ¶
- Constants
- func ConfigESLogger(esUrl string, esHOst string, index string) error
- func GetFunctionName(i interface{}, seps ...rune) string
- func Listen(f interface{}, callback func(interface{}), param string)
- func OpenSendLog(name string, open bool, elkAddress string)
- func SetLogLevel(lev logrus.Level)
- func SetLogModel(mod int) error
- func SetLogName(name string)
- func SetPathLvl(lvl int)
- func Test(format string, args ...interface{})
- func UserInfoLog(userId int64, format string, args ...interface{})
- type Api_Stdout
- func (*Api_Stdout) Critical(args ...interface{})
- func (*Api_Stdout) Debug(args ...interface{})
- func (*Api_Stdout) Debugf(format string, args ...interface{})
- func (*Api_Stdout) Error(args ...interface{})
- func (*Api_Stdout) Errorf(format string, args ...interface{})
- func (*Api_Stdout) Fatal(args ...interface{})
- func (*Api_Stdout) Fatalf(format string, args ...interface{})
- func (*Api_Stdout) Info(args ...interface{})
- func (*Api_Stdout) Infof(format string, args ...interface{})
- func (*Api_Stdout) Notice(args ...interface{})
- func (*Api_Stdout) Panic(args ...interface{})
- func (*Api_Stdout) Panicf(format string, args ...interface{})
- func (one *Api_Stdout) Trace() func()
- func (one *Api_Stdout) TraceInfo(str string) func()
- func (one *Api_Stdout) TraceParam(param string) func()
- func (*Api_Stdout) Warn(args ...interface{})
- func (*Api_Stdout) Warning(args ...interface{})
- func (*Api_Stdout) Warningf(format string, args ...interface{})
Constants ¶
View Source
const ( C_Kafka_Log_Topic = "all-server-log-test2" C_Kafka_Log_User_Topic = "all-user-log-test2" LEVEL_FATA = 1 LEVEL_ERROR = 2 LEVEL_WARNING = 3 LEVEL_INFO = 4 LEVEL_DEBUG = 6 )
日志等级
View Source
const ( MODEL_PRO = iota MODEL_INFO MODEL_DEV )
日志模式
Variables ¶
This section is empty.
Functions ¶
func GetFunctionName ¶
func OpenSendLog ¶
func SetLogModel ¶
*设置日志模式 *参数说明: *@param:mod 模式 MODEL_PRO:只向日志服务器发送日志 MODEL_INFO:向日志服务器发送日志切输出到控制台 MODEL_DEV:只输出到控制台
func SetLogName ¶
func SetLogName(name string)
func SetPathLvl ¶
func SetPathLvl(lvl int)
func UserInfoLog ¶
Types ¶
type Api_Stdout ¶
type Api_Stdout struct{}
func (*Api_Stdout) Critical ¶
func (*Api_Stdout) Critical(args ...interface{})
func (*Api_Stdout) Fatal ¶
func (*Api_Stdout) Fatal(args ...interface{})
func (*Api_Stdout) Notice ¶
func (*Api_Stdout) Notice(args ...interface{})
func (*Api_Stdout) Panic ¶
func (*Api_Stdout) Panic(args ...interface{})
Click to show internal directories.
Click to hide internal directories.