Documentation
¶
Index ¶
- type Logger
- type Option
- func Async(async bool) Option
- func BufferLimit(bufferLimit int) Option
- func ForceStopAsyncSend(forceStopAsyncSend bool) Option
- func MarshalAsJson(enable bool) Option
- func MaxRetry(maxRetry int) Option
- func MaxRetryWait(maxRetryWait int) Option
- func RetryWait(retryWait int) Option
- func TagPrefix(tagPrefix string) Option
- func Timeout(timeout time.Duration) Option
- func WriteTimeout(writeTimeout time.Duration) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger is fluent logger sdk.
func NewLogger ¶
NewLogger new a std logger with options. target:
tcp://127.0.0.1:24224 unix:///var/run/fluent/fluent.sock
type Option ¶
type Option func(*options)
Option is fluentd logger option.
func ForceStopAsyncSend ¶
ForceStopAsyncSend with config ForceStopAsyncSend.
func MarshalAsJson ¶
func MaxRetryWait ¶
MaxRetryWait with config MaxRetryWait.
func WriteTimeout ¶
WriteTimeout with config WriteTimeout.
Click to show internal directories.
Click to hide internal directories.