Documentation ¶
Overview ¶
Package logring - Ring buffer for log messages
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ring ¶
type Ring struct {
// contains filtered or unexported fields
}
Ring is a ring buffer. Each call to Ring.Write stores a log message. All of Ring's methods are safe for concurrent use.
func (*Ring) Messages ¶
Messages returns the messages stored in the Ring. The messages will not end in a newline.
func (*Ring) MessagesAndClear ¶
MessagesAndClear is like Messages, but also clears the buffer.
Click to show internal directories.
Click to hide internal directories.