Documentation
¶
Index ¶
- func CloseAll(c []io.Closer) error
- func CopyBytes(p []byte) []byte
- func Debugf(conf *config.Config, s string, args ...interface{})
- func DebugfDepth(conf *config.Config, depth int, s string, args ...interface{})
- func DiscardError(err error)
- func IgnoreError(verbose bool, err error)
- func LogAndReturnError(err error) error
- func LogError(err error)
- func Logf(s string, args ...interface{})
- func NewReadLogger(prefix string, r io.Reader, depth int) io.Reader
- func PanicOnError(err error)
- func Prettybuf(bufs ...[]byte) []byte
- type LifecycleManager
- type LogFile
- type Stats
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DebugfDepth ¶
DebugfDepth prints a debug log message to stdout
func DiscardError ¶
func DiscardError(err error)
DiscardError does nothing with an error. Used for linting really
func IgnoreError ¶
IgnoreError logs the error if one occurred
func LogAndReturnError ¶
LogAndReturnError logs the error if one occurred, then returns the error
func NewReadLogger ¶ added in v0.1.1
NewReadLogger returns a reader that behaves like r except that it logs (using log.Printf) each read to standard error, printing the prefix and the data read.
Types ¶
type LifecycleManager ¶
LifecycleManager handles application startup / shutdown for loggers and servers.
type LogFile ¶
func NewLogFile ¶
Click to show internal directories.
Click to hide internal directories.