Documentation ¶
Overview ¶
Package logthis provides a way to either print, log, and/or send a string to channels. Provides a default logger initiated on import.
Index ¶
- Constants
- func Error(err error, level int)
- func ErrorIfNotNil(errs []error, level int)
- func Info(msg string, level int)
- func SetLevel(value int)
- func SetStdOutput(value bool)
- func Subscribe() chan interface{}
- func TimedInfo(msg string, level int)
- func Unsubscribe(msgCh chan interface{})
- type LogThis
Constants ¶
View Source
const ( NORMAL = iota VERBOSE VERBOSEST VERBOSESTEST )
Variables ¶
This section is empty.
Functions ¶
func ErrorIfNotNil ¶ added in v0.17.0
ErrorIfNotNil logs non-nil errors from a slice
func SetStdOutput ¶
func SetStdOutput(value bool)
func Unsubscribe ¶ added in v0.7.0
func Unsubscribe(msgCh chan interface{})
Types ¶
Click to show internal directories.
Click to hide internal directories.