Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateSyslogHook ¶
func CreateSyslogHook(cfg *LoggingConfig) (logrus.Hook, error)
func Init ¶
func Init(cfg *LoggingConfig) error
Types ¶
type LoggingConfig ¶
type LoggingConfig struct { Formatter logrus.Formatter Level logrus.Level Syslog *SyslogConfig }
func NewLoggingConfig ¶
func NewLoggingConfig() *LoggingConfig
type SyslogConfig ¶
type TextFormatter ¶
type TextFormatter struct { // TimestampFormat is the format used to print the timestamp. By default // an RFC3339 timestamp is used. TimestampFormat string }
func NewTextFormatter ¶
func NewTextFormatter() *TextFormatter
NewTextFormatter returns a text formatter
Click to show internal directories.
Click to hide internal directories.