logstash

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2025 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const EnvPrefix = "LOGSTASH"
View Source
const OutKind = "logstash"

Variables

This section is empty.

Functions

func New

func New() (io.Writer, *slog.HandlerOptions, error)

Types

type Config

type Config struct {
	Host    string     `env:"_HOST" envDefault:"localhost:4242"`
	Network string     `env:"_NETWORK" envDefault:"tcp"`
	Level   slog.Level `env:"_LEVEL" envDefault:"INFO"`
}

func GetConfigFromEnv

func GetConfigFromEnv() (*Config, error)

Jump to

Keyboard shortcuts

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