Documentation ¶
Index ¶
- func Alert(msg string, v ...map[string]interface{})
- func Async(msgLen ...int64) *logs.BeeLogger
- func CheckError(err error)
- func CheckFatal(err error)
- func Critical(msg string, v ...map[string]interface{})
- func Debug(msg string, v ...map[string]interface{})
- func Emergency(msg string, v ...map[string]interface{})
- func Error(msg string, v ...map[string]interface{})
- func GetMimeType(name string) string
- func Go(callback func())
- func Info(msg string, v ...map[string]interface{})
- func Notice(msg string, v ...map[string]interface{})
- func RandId(length int) string
- func RandStr(l int) string
- func Reset()
- func SetLogFuncCall(b bool)
- func SetLogLevel(l int)
- func SetLogPrefix(s string)
- func SetLogger(adapter string, config ...string) error
- func ToCamelString(s string) string
- func ToInt(value interface{}, defVal ...int) int
- func ToInt64(value interface{}, defVal ...int64) int64
- func ToSnakeString(s string) string
- func ToString(value interface{}, defVal ...string) string
- func Trace(msg string, v ...map[string]interface{})
- func Warn(msg string, v ...map[string]interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetLogLevel ¶ added in v0.1.6
func SetLogLevel(l int)
SetLevel sets the global log level used by the simple logger.
func SetLogger ¶
设置日志 adapter console、file、multifile beego.SetLogger("file", `{"filename":"logs/test.log"}`)
func ToSnakeString ¶
snake string, XxYy to xx_yy , XxYY to xx_yy
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.