Documentation ¶
Index ¶
- Variables
- func ConvertArgs(args ...interface{}) []interface{}
- 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 GetCronLog() *logrus.Logger
- func Info(args ...interface{})
- func Infof(format string, args ...interface{})
- func Infoln(args ...interface{})
- func Init(settings *LogSettings)
- func Panic(args ...interface{})
- func Panicf(format string, args ...interface{})
- func Panicln(args ...interface{})
- func UpdateLevel(level string)
- func Warn(args ...interface{})
- func Warnf(format string, args ...interface{})
- func Warnln(args ...interface{})
- type LogSettings
Constants ¶
This section is empty.
Variables ¶
View Source
var ConsoleLog = logrus.New()
View Source
var FileLog = logrus.New()
Functions ¶
func ConvertArgs ¶
func ConvertArgs(args ...interface{}) []interface{}
func GetCronLog ¶
func Init ¶
func Init(settings *LogSettings)
func Panic ¶
func Panic(args ...interface{})
func Println(v ...interface{}){ ConsoleLog.Println() FileLog.Info(v) }
func Printf(format string, args ...interface{}){ Log.Infof(format,args) }
func UpdateLevel ¶
func UpdateLevel(level string)
Types ¶
type LogSettings ¶
Click to show internal directories.
Click to hide internal directories.