fluentd

package
v0.0.0-...-fc09d8a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package fluentd provides functionalities for integrating the fluentd logging driver with shim-loggers-for-containerd.

Index

Constants

View Source
const (
	// AddressKey specifies the address configuration for fluentd.
	AddressKey = "fluentd-address"
	// AsyncConnectKey specifies the async connect configuration key for fluentd.
	AsyncConnectKey = "fluentd-async-connect"
	// FluentdTagKey specifies the tag configuration key for fluentd.
	FluentdTagKey = "fluentd-tag"
	// SubsecondPrecisionKey specifies the sub-second precision configuration key for fluentd.
	SubsecondPrecisionKey = "fluentd-sub-second-precision"
	// BufferLimitKey specifies the buffer limit configuration key for fluentd.
	BufferLimitKey = "fluentd-buffer-limit"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args struct {
	// Optional arguments
	Address            string
	AsyncConnect       string
	Tag                string
	SubsecondPrecision string
	BufferLimit        string
}

Args represents fluentd log driver arguments.

type LoggerArgs

type LoggerArgs struct {
	// contains filtered or unexported fields
}

LoggerArgs stores global logger args and fluentd specific args.

func InitLogger

func InitLogger(globalArgs *logger.GlobalArgs, fluentdArgs *Args) *LoggerArgs

InitLogger initialize the input arguments.

func (*LoggerArgs) RunLogDriver

func (la *LoggerArgs) RunLogDriver(ctx context.Context, config *logging.Config, ready func() error) error

RunLogDriver initializes and starts the fluentd logger. Errors with the log driver are logged but not returned to prevent container termination.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL