Documentation ¶
Index ¶
- Constants
- func CheckFatal(message string, err error)
- func Configure(out io.WriteCloser, prefix, level string)
- func Debugf(format string, v ...interface{})
- func Errorf(format string, v ...interface{})
- func Fatalf(format string, v ...interface{})
- func HTTPDebug(r *http.Request, status int)
- func HTTPDebugWithDuration(r *http.Request, status int, duration time.Duration)
- func HTTPError(r *http.Request, status int)
- func HTTPInfo(r *http.Request, status int)
- func HTTPWarn(r *http.Request, status int)
- func Infof(format string, v ...interface{})
- func New(out io.WriteCloser, prefix, level string)
- func NewLogErrorWriter(prefix string) io.Writer
- func NewLogInfoWriter(prefix string) io.Writer
- func SignalOnWrite(signal chan<- int, wrapped io.Writer) io.Writer
- func Warnf(format string, v ...interface{})
- type WriterFunc
Constants ¶
View Source
const DefaultLogLevel = "INFO"
Variables ¶
This section is empty.
Functions ¶
func CheckFatal ¶
func Configure ¶
func Configure(out io.WriteCloser, prefix, level string)
func HTTPDebugWithDuration ¶ added in v0.4.0
func New ¶ added in v0.5.1
func New(out io.WriteCloser, prefix, level string)
func NewLogErrorWriter ¶
func NewLogInfoWriter ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.