Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MemorySink ¶
type MemorySink struct {
// contains filtered or unexported fields
}
MemorySink implements zap.Sink by writing all messages to a buffer.
func (*MemorySink) Read ¶
func (s *MemorySink) Read(data []byte) (int, error)
Read implements the io.ReadWriter interface
func (*MemorySink) SetOut ¶
func (s *MemorySink) SetOut(out io.ReadWriter) error
SetOut atomically sets the output read-writer
Click to show internal directories.
Click to hide internal directories.