Documentation ¶
Overview ¶
Package logs 日志.
使用 logrus 日志.
Example ¶
package main import ( "github.com/xuender/oils/logs" ) func main() { logs.Info("xx") }
Output:
Index ¶
- func Debug(args ...interface{})
- func Debugf(template string, args ...interface{})
- func Debugw(msg string, keysAndValues ...interface{})
- func Error(args ...interface{})
- func Errorf(template string, args ...interface{})
- func Errorw(msg string, keysAndValues ...interface{})
- func Fatal(args ...interface{})
- func Fatalf(template string, args ...interface{})
- func Fatalw(msg string, keysAndValues ...interface{})
- func Info(args ...interface{})
- func Infof(template string, args ...interface{})
- func Infow(msg string, keysAndValues ...interface{})
- func LogName(paths ...string) string
- func Panic(args ...interface{})
- func Panicf(template string, args ...interface{})
- func Panicw(msg string, keysAndValues ...interface{})
- func RotateJSONLog(paths ...string)
- func RotateLog(paths ...string)
- func SetInfoLevel()
- func Warn(args ...interface{})
- func Warnf(template string, args ...interface{})
- func Warnw(msg string, keysAndValues ...interface{})
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RotateJSONLog ¶ added in v0.5.48
func RotateJSONLog(paths ...string)
func SetInfoLevel ¶
func SetInfoLevel()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.