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 SyslogLevel ¶
func ParseSyslogPriority ¶
func ParseSyslogPriority(lvl string) (SyslogLevel, error)
ParseSyslogPriority конвертирует уровень логирования для syslog.
Click to show internal directories.
Click to hide internal directories.