saw

package
v0.0.0-...-c67a641 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2017 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(settings Settings) (*logrus.Logger, error)

Types

type LogfileSettings

type LogfileSettings struct {
	Path           string
	LogLevel       string
	TimeFormat     string
	RotationPeriod string
	Symlink        bool
}

type Settings

type Settings struct {
	File struct {
		WriteTo  bool
		Settings LogfileSettings
	}
	Syslog struct {
		Local         bool
		LocalSettings struct {
			Severity string
			Facility string
			Tag      string
		}
		UDP         bool
		UDPSettings struct {
			Severity string
			Facility string
			Tag      string
			Address  string
			Port     string
		}
		TCP         bool
		TCPSettings struct {
			Severity string
			Facility string
			Tag      string
			Address  string
			Port     string
		}
	}
}

Jump to

Keyboard shortcuts

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