log

package
v0.1.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 22, 2020 License: MIT Imports: 12 Imported by: 5

Documentation

Index

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 Debug

func Debug(args ...interface{})

func Debugf

func Debugf(format string, args ...interface{})

func Debugln

func Debugln(args ...interface{})

func Error

func Error(args ...interface{})

func Errorf

func Errorf(format string, args ...interface{})

func Errorln

func Errorln(args ...interface{})

func GetCronLog

func GetCronLog() *logrus.Logger

func Info

func Info(args ...interface{})

func Infof

func Infof(format string, args ...interface{})

func Infoln

func Infoln(args ...interface{})

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 Panicf

func Panicf(format string, args ...interface{})

func Panicln

func Panicln(args ...interface{})

func UpdateLevel

func UpdateLevel(level string)

func Warn

func Warn(args ...interface{})

func Warnf

func Warnf(format string, args ...interface{})

func Warnln

func Warnln(args ...interface{})

Types

type LogSettings

type LogSettings struct {
	Name   string
	Rotate bool
	Level  string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL