Documentation ¶
Index ¶
- Constants
- func Debug(format string, args ...interface{})
- func Error(format string, args ...interface{})
- func Fatal(args ...interface{})
- func Fatalf(format string, args ...interface{})
- func Info(format string, args ...interface{})
- func Print(args ...interface{})
- func Printf(format string, args ...interface{})
- func Println(args ...interface{})
- func SetLevel(level int)
- func SetOutput(w io.Writer)
- func Tracef(format string, args ...interface{})
- type Timer
Constants ¶
View Source
const ( ERROR = iota INFO = iota DEBUG = iota )
Logging level
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Timer ¶ added in v0.1.2
type Timer struct {
// contains filtered or unexported fields
}
Timer is a wrapper for time
func StartTimer ¶ added in v0.1.2
func StartTimer() Timer
StartTimer returns a Timer with a start time if logLevel >= DEBUG
func (*Timer) LogElapsed ¶ added in v0.1.2
LogElapsed writes to debug log message and elapsed time
Click to show internal directories.
Click to hide internal directories.