Documentation
¶
Overview ¶
Package writer contains some writers implementation for access logging.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FluentLogWriter ¶
type FluentLogWriter struct {
// contains filtered or unexported fields
}
FluentLogWriter is the log writer that implements io.Writer. It writes a log by Fluent Forwarder.
func NewFluentLogWriter ¶
func NewFluentLogWriter(tag, host string, port int) (*FluentLogWriter, error)
NewFluentLogWriter creates a new FluentLogWriter.
func NewFluentLogWriterFromForwarder ¶
func NewFluentLogWriterFromForwarder(tag string, f *fluent.Fluent) *FluentLogWriter
NewFluentLogWriterFromForwarder creates a new FluentLigWriter from Fluent Forwarder.
func (*FluentLogWriter) Close ¶
func (f *FluentLogWriter) Close() error
Close closes underlying connections with the Fluent daemon.
Click to show internal directories.
Click to hide internal directories.