Documentation ¶
Overview ¶
Package memory is a io.Writer implementation to use when testing log lines being produced.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Line ¶
type Line struct { // Fields contains the log tags. Fields map[string]interface{} `json:"fields"` // Level indicates the log level. Level string `json:"level"` // Message contains the actual message string. Message string `json:"message"` }
Line encapsulates the different elements that were logged.
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
Writer implements io.Writer and provides a way to fetch the log lines that were produced.
Click to show internal directories.
Click to hide internal directories.