Documentation ¶
Index ¶
- Variables
- func CloseLogFile(log *os.File)
- func Debug(msg string)
- func Debugf(msg string, param ...interface{})
- func Err(msg string)
- func Errf(msg string, param ...interface{})
- func GinLogrus() gin.HandlerFunc
- func Info(msg string)
- func Infof(msg string, param ...interface{})
- func LogIt(fyl *os.File, lyn string)
- func LogOnce(logfile string, msg string)
- func OpenLogFile(logFile string) *os.File
- func Panic(msg string)
- func Panicf(msg string, param ...interface{})
- func Warn(msg string)
- func Warnf(msg string, param ...interface{})
- type Log
- type Logrus
Constants ¶
This section is empty.
Variables ¶
View Source
var ( /* O:"panic" 1:"fatal" 2:"error" 3:"warn" 4:"info" 5:"debug" */ LogLevel = golenv.OverrideIfEnv("GOLLOG_LOG_LEVEL", "5") )
Functions ¶
func GinLogrus ¶
func GinLogrus() gin.HandlerFunc
func OpenLogFile ¶
Logfile sends back handle of opened logfile, remember to defer F.Close() at usage.
Types ¶
Click to show internal directories.
Click to hide internal directories.