Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLineLogger ¶
func NewLineLogger(config *TelegrafLoggerConfig, outputStream io.Writer) *lineLogger
Create a line-protocol logger using its own metric encoder pool
func NewLineLoggerUsingPool ¶
func NewLineLoggerUsingPool(config *TelegrafLoggerConfig, outputStream io.Writer, encoderPool *mpool.MetricEncoderPool) *lineLogger
Create a line-protocol logger using a provided metric encoder pool
Types ¶
type TelegrafLoggerConfig ¶
type TelegrafLoggerConfig struct { LogFile string // may be file path, "stderr", or "stdout" LogLevel string LogFormat string LogMetric string }
func NewTelegrafLoggerConfiguration ¶
func NewTelegrafLoggerConfiguration(useFlags bool) (*TelegrafLoggerConfig, error)
func (*TelegrafLoggerConfig) Create ¶
func (config *TelegrafLoggerConfig) Create() kitlog.Logger
Click to show internal directories.
Click to hide internal directories.