Documentation ¶
Index ¶
- Constants
- func AddWriter(w io.Writer)
- func Cancel()
- func Debug(facility Facility, message ...interface{})
- func Error(facility Facility, message ...interface{})
- func Fatal(facility Facility, message ...interface{})
- func Info(facility Facility, message ...interface{})
- func Run(minLevel Level) bool
- func Warn(facility Facility, message ...interface{})
- type Facility
- type Level
- type Logger
- type Message
- type NewlineWriter
- type NullWriter
Constants ¶
View Source
const ( FacilityRing Facility = "ringbuf" FacilityAgent = "agent" FacilityDefault = "ringio" FacilityStdout = "stdout" FacilityStderr = "stderr" FacilityPipe = "pipe" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type NewlineWriter ¶
type NewlineWriter struct {
// contains filtered or unexported fields
}
func NewNewlineWriter ¶
func NewNewlineWriter(w io.Writer) *NewlineWriter
type NullWriter ¶
type NullWriter struct{}
Click to show internal directories.
Click to hide internal directories.