types

package
v0.0.0-...-ceabe2d Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OverwritingMode string = "overwriting"
	ComplementMode  string = "complement"
)

ProcessingMode

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	LogLevel       logrus.Level `env:"LOG_LEVEL" toml:"level" json:"level" xml:"level" yaml:"level" default:"debug"`
	Syslog         string       `` /* 131-byte string literal not displayed */
	SyslogProtocol string       `` /* 149-byte string literal not displayed */
	SysLogLevel    SyslogLevel  `env:"SYSLOG_LEVEL" toml:"syslog_level" json:"syslog_level" xml:"syslog_level" yaml:"syslog_level" default:"debug"`
	Colour         bool         `env:"COLOUR" toml:"colour" json:"colour" xml:"colour" yaml:"colour" default:"false"`
	StdOut         bool         `env:"STDOUT" toml:"stdout" json:"stdout" xml:"stdout" yaml:"stdout" default:"true"`
	GraylogLevel   logrus.Level `env:"GRAYLOG_LEVEL" toml:"graylog_level" json:"graylog_level" xml:"graylog_level" yaml:"graylog_level" default:"debug"`
	Graylog        string       `env:"GRAYLOG" toml:"graylog" json:"graylog" xml:"graylog" yaml:"graylog"`
}

type Options

type Options string
const (
	TimeFormat      Options = "time_format"
	ProcessingMode  Options = "processing_mode"
	LoggerHook      Options = "logger_hook"
	LoggerInstance  Options = "logger_instance"
	ValidatorEnable Options = "validator_enable"
)

General option types

type SyslogLevel

type SyslogLevel syslog.Priority

func ParseSyslogPriority

func ParseSyslogPriority(lvl string) (SyslogLevel, error)

ParseSyslogPriority конвертирует уровень логирования для syslog.

Jump to

Keyboard shortcuts

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