package
Version:
v3.0.0-...-e8b7a4c
Opens a new window with list of versions in this module.
Published: Jul 24, 2023
License: GPL-3.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package log is a wrapper of logrus.
- Variables
-
func Crit(msg string, ctx ...interface{})
-
func Critf(format string, args ...interface{})
-
func Critln(msg string, ctx ...interface{})
-
func Debug(msg string, ctx ...interface{})
-
func Debugf(format string, args ...interface{})
-
func Debugln(msg string, ctx ...interface{})
-
func Error(msg string, ctx ...interface{})
-
func Errorf(format string, args ...interface{})
-
func Errorln(msg string, ctx ...interface{})
-
func Fatal(msg string, ctx ...interface{})
-
func Fatalf(format string, args ...interface{})
-
func Fatalln(msg string, ctx ...interface{})
-
func Info(msg string, ctx ...interface{})
-
func Infof(format string, args ...interface{})
-
func Infoln(msg string, ctx ...interface{})
-
func Null(string, ...interface{})
-
func Panic(msg string, ctx ...interface{})
-
func Panicf(format string, args ...interface{})
-
func Panicln(msg string, ctx ...interface{})
-
func Print(msg ...interface{})
-
func Printf(format string, args ...interface{})
-
func Println(msg ...interface{})
-
func SetLogFile(logFile string, logRotation, logMaxAge uint64)
-
func SetLogger(logLevel uint32, jsonFormat, colorFormat bool)
-
func Trace(msg string, ctx ...interface{})
-
func Tracef(format string, args ...interface{})
-
func Traceln(msg string, ctx ...interface{})
-
func Warn(msg string, ctx ...interface{})
-
func Warnf(format string, args ...interface{})
-
func Warnln(msg string, ctx ...interface{})
-
func WithFields(ctx ...interface{}) *logrus.Entry
-
type PrintFunc
JSONFormat print log in json format
func Crit(msg string, ctx ...interface{})
Crit alias of `Fatal`
func Critf(format string, args ...interface{})
Critf alias of `Fatalf`
func Critln(msg string, ctx ...interface{})
Critln alias of `Fatalln`
func Debug(msg string, ctx ...interface{})
Debug debug
func Debugf(format string, args ...interface{})
Debugf debugf
func Debugln(msg string, ctx ...interface{})
Debugln debugln
func Error(msg string, ctx ...interface{})
Error error
func Errorf(format string, args ...interface{})
Errorf errorf
func Errorln(msg string, ctx ...interface{})
Errorln errorln
func Fatal(msg string, ctx ...interface{})
Fatal fatal
func Fatalf(format string, args ...interface{})
Fatalf fatalf
func Fatalln(msg string, ctx ...interface{})
Fatalln fatalln
func Info(msg string, ctx ...interface{})
Info info
func Infof(format string, args ...interface{})
Infof infof
func Infoln(msg string, ctx ...interface{})
Infoln infoln
func Null(string, ...interface{})
Null don't output anything
func Panic(msg string, ctx ...interface{})
Panic panic
func Panicf(format string, args ...interface{})
Panicf panicf
func Panicln(msg string, ctx ...interface{})
Panicln panicln
func Print(msg ...interface{})
Print print
func Printf(format string, args ...interface{})
Printf printf
func Println(msg ...interface{})
Println println
func SetLogFile(logFile string, logRotation, logMaxAge uint64)
SetLogFile set log file path and rotation
func SetLogger(logLevel uint32, jsonFormat, colorFormat bool)
SetLogger set log level and format etc
func Trace(msg string, ctx ...interface{})
Trace trace
func Tracef(format string, args ...interface{})
Tracef tracef
func Traceln(msg string, ctx ...interface{})
Traceln traceln
func Warn(msg string, ctx ...interface{})
Warn warn
func Warnf(format string, args ...interface{})
Warnf warnf
func Warnln(msg string, ctx ...interface{})
Warnln warnln
WithFields encapsulate logrus.WithFields
type PrintFunc func(msg string, ctx ...interface{})
PrintFunc print function prototype
GetLogFuncOr get log func of default
GetPrintFuncOr get log func of default
Source Files
¶
Click to show internal directories.
Click to hide internal directories.