Documentation ¶
Overview ¶
Package async provides an asynchronous appender for gol.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Appender ¶
type Appender struct {
// contains filtered or unexported fields
}
Appender sends the logging event to all appenders asynchronously. It implements gol.Appender.
func NewAppender ¶
NewAppender allocates and returns a new Appender. Start() must be called before writing data.
func NewAppenderWithBufSize ¶
NewAppenderWithBufSize returns an asynchronous appender with a buffer size of bufSize for each appender channel.
func (*Appender) Append ¶
func (a *Appender) Append(e *gol.LoggingEvent)
Append sends the event to all appenders.
Click to show internal directories.
Click to hide internal directories.