syslog

package
v0.28.1 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conf

type Conf struct {
	Protocol string `json:"-"`
	Host     string `valid:"host" json:"-"`
	Port     string `valid:"port" json:"-"`
	Severity string `json:"-"`
	Facility string `json:"-"`
	Tag      string `json:"-"`
	Verbose  bool   `json:"-"`
	Enabled  bool   `toml:"-" json:"-"`
}

Conf is syslog config

func (*Conf) GetFacility

func (c *Conf) GetFacility() (syslog.Priority, error)

GetFacility gets facility

func (*Conf) GetSeverity

func (c *Conf) GetSeverity() (syslog.Priority, error)

GetSeverity gets severity

func (*Conf) Validate

func (c *Conf) Validate() (errs []error)

Validate validates configuration

Jump to

Keyboard shortcuts

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