package
0.0.0-20220308083446-f387b464c92d
Repository: https://github.com/weijun-sh/gethscan-server.git
Documentation: pkg.go.dev
# Functions
Crit alias of `Fatal`.
Critf alias of `Fatalf`.
Critln alias of `Fatalln`.
Debug debug.
Debugf debugf.
Debugln debugln.
Error error.
Errorf errorf.
Errorln errorln.
Fatal fatal.
Fatalf fatalf.
Fatalln fatalln.
GetPrintFuncOr get log func of default.
Info info.
Infof infof.
Infoln infoln.
Null don't output anything.
Panic panic.
Panicf panicf.
Panicln panicln.
Print print.
Printf printf.
Println println.
SetLogFile set log file path and rotation.
SetLogger set log level and format etc.
Trace trace.
Tracef tracef.
Traceln traceln.
Warn warn.
Warnf warnf.
Warnln warnln.
WithFields encapsulate logrus.WithFields.
# Variables
JSONFormat print log in json format.
# Type aliases
PrintFunc print function prototype.