Documentation ¶
Index ¶
- Constants
- Variables
- func Debug(msg string)
- func Debugf(msgTmpl string, param ...interface{})
- func Error(msg string)
- func Errorf(msgTmpl string, param ...interface{})
- func Info(msg string)
- func Infof(msgTmpl string, param ...interface{})
- func LogIt()
- func LogOnce(logfile, level, msg string)
- func Panic(msg string)
- func Panicf(msgTmpl string, param ...interface{})
- func SetGinLog(router *gin.Engine)
- func Start(proc func())
- func Stop()
- func Warn(msg string)
- func Warnf(msgTmpl string, param ...interface{})
- type GollogLevel
- type GollogMsg
Constants ¶
View Source
const DefaultLogFile = "default-gollog.log"
Variables ¶
View Source
var ( Level string Thread chan GollogMsg SaveAt string LogFileHandler *os.File Display bool Persist bool )
View Source
var ( GinTimeFormat = time.RFC3339 GinEnableUTC = false )
View Source
var ( LevelPriority = map[GollogLevel]uint8{ LevelDebug: 0, LevelInfo: 1, LevelWarning: 2, LevelError: 3, LevelPanic: 4, } )
Functions ¶
Types ¶
type GollogLevel ¶
type GollogLevel string
const ( LevelDebug GollogLevel = "DEBUG" LevelInfo GollogLevel = "INFO" LevelWarning GollogLevel = "WARN" LevelError GollogLevel = "ERROR" LevelPanic GollogLevel = "PANIC" )
type GollogMsg ¶
type GollogMsg struct { Level GollogLevel Msg interface{} }
Click to show internal directories.
Click to hide internal directories.