Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BufferedLogWriter ¶
type BufferedLogWriter struct {
// contains filtered or unexported fields
}
BufferedLogWriter represents a logging object that generates output to a buffer.
func (*BufferedLogWriter) Len ¶
func (l *BufferedLogWriter) Len() int
Len returns the length of the buffer
func (*BufferedLogWriter) ReadAll ¶
func (l *BufferedLogWriter) ReadAll() string
ReadAll reads all the data from the buffer into a string
func (*BufferedLogWriter) Reset ¶
func (l *BufferedLogWriter) Reset()
Reset resets the buffer to empty
func (*BufferedLogWriter) Write ¶
func (l *BufferedLogWriter) Write(b []byte) (int, error)
Write writes the given data to the buffer
func (*BufferedLogWriter) WriteString ¶
func (l *BufferedLogWriter) WriteString(s string) (int, error)
WriteString writes a string to the buffer
type LogWriter ¶
LogWriter is a wrapper for the standard logger to implement io.Writer
func NewLogWriter ¶
NewLogWriter create a new LogWriter
Click to show internal directories.
Click to hide internal directories.