Documentation ¶
Index ¶
- Constants
- func CurrentFileName() string
- func Debug(args ...interface{})
- func Debugf(format string, args ...interface{})
- func Debugln(args ...interface{})
- func Error(args ...interface{})
- func Errorf(format string, args ...interface{})
- func Errorln(args ...interface{})
- func Fatal(args ...interface{})
- func Fatalf(format string, args ...interface{})
- func Fatalln(args ...interface{})
- func GetLogger() *logrus.Logger
- func Info(args ...interface{})
- func Infof(format string, args ...interface{})
- func Infoln(args ...interface{})
- func LogLinkFileFPath() string
- func NewLogHelper(logRootDirFPath, appName string, level logrus.Level, maxAge time.Duration, ...) *logrus.Logger
- func NewLogger(logRootDirFPath, logFileName string) *logrus.Logger
- func Panic(args ...interface{})
- func Panicf(format string, args ...interface{})
- func Panicln(args ...interface{})
- func Print(args ...interface{})
- func Printf(format string, args ...interface{})
- func Println(args ...interface{})
- func SetLoggerLevel(level logrus.Level)
- func SetLoggerName(logName string)
- func SetLoggerRootDir(loggerRootDir string)
- func Warn(args ...interface{})
- func Warnf(format string, args ...interface{})
- func Warning(args ...interface{})
- func Warningf(format string, args ...interface{})
- func Warningln(args ...interface{})
- func Warnln(args ...interface{})
Constants ¶
View Source
const (
NameDef = "logger"
)
Variables ¶
This section is empty.
Functions ¶
func CurrentFileName ¶ added in v0.0.6
func CurrentFileName() string
func LogLinkFileFPath ¶ added in v0.0.6
func LogLinkFileFPath() string
func NewLogHelper ¶
func SetLoggerLevel ¶
func SetLoggerName ¶
func SetLoggerName(logName string)
func SetLoggerRootDir ¶
func SetLoggerRootDir(loggerRootDir string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.