Documentation
¶
Index ¶
- Constants
- Variables
- func Debug(v ...interface{})
- func Detail(something interface{}) string
- func Error(v ...interface{})
- func Failed(v ...interface{})
- func Fatal(v ...interface{})
- func GetLevel() string
- func Notice(v ...interface{})
- func SetLevel(level string)
- func SetLogger(newlogger GoLogger)
- func Success(v ...interface{})
- func Warning(v ...interface{})
- type CallerInfo
- type GoLogger
Constants ¶
View Source
const ( LogDebug = iota LogNotice LogSuccess LogFailed LogWarning LogError LogFatal )
Variables ¶
View Source
var LogLevelMap map[int]string
Functions ¶
Types ¶
type CallerInfo ¶
type CallerInfo struct {
// contains filtered or unexported fields
}
func GetCallerInfo ¶
func GetCallerInfo(skip int) *CallerInfo
func (*CallerInfo) FileName ¶
func (caller *CallerInfo) FileName() string
func (*CallerInfo) FuncName ¶
func (caller *CallerInfo) FuncName() string
func (*CallerInfo) LineNumber ¶
func (caller *CallerInfo) LineNumber() int
type GoLogger ¶
type GoLogger interface {
Debug(caller *CallerInfo, v ...interface{})
Notice(caller *CallerInfo, v ...interface{})
Warning(caller *CallerInfo, v ...interface{})
Error(caller *CallerInfo, v ...interface{})
Success(caller *CallerInfo, v ...interface{})
Failed(caller *CallerInfo, v ...interface{})
Fatal(caller *CallerInfo, v ...interface{})
}
Click to show internal directories.
Click to hide internal directories.