Documentation ¶
Index ¶
- Constants
- Variables
- func DefaultPrintLine(level TLogLevel, line string)
- func Error(args ...interface{})
- func Info(args ...interface{})
- func IsError() bool
- func IsInfo() bool
- func IsTrace() bool
- func IsVerbose() bool
- func IsWarning() bool
- func Log(skipStackFrames int, level TLogLevel, args ...interface{})
- func SetLogLevel(logLevel TLogLevel)
- func Trace(args ...interface{})
- func Verbose(args ...interface{})
- func Warning(args ...interface{})
- type TLogLevel
Constants ¶
View Source
const ( LogLevelNone = TLogLevel(iota) LogLevelError LogLevelWarning LogLevelInfo LogLevelVerbose // aka Debug LogLevelTrace )
Log Levels enum
Variables ¶
View Source
var PrintLine func(level TLogLevel, line string) = DefaultPrintLine
Functions ¶
func DefaultPrintLine ¶
func SetLogLevel ¶
func SetLogLevel(logLevel TLogLevel)
Types ¶
Click to show internal directories.
Click to hide internal directories.