Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLogstashClient ¶ added in v1.7.0
func NewLogstashClient(config LogstashConfig) (*net.UDPConn, error)
Types ¶
type Config ¶
type Config struct {
Service ServiceConfig
Logstash *LogstashConfig
}
type LogstashConfig ¶ added in v1.7.0
type LogstashHook ¶ added in v1.7.0
type LogstashHook struct {
// contains filtered or unexported fields
}
func NewLogstashHook ¶ added in v1.7.0
func NewLogstashHook(conn *net.UDPConn, addr *net.UDPAddr) *LogstashHook
func (*LogstashHook) Levels ¶ added in v1.7.0
func (h *LogstashHook) Levels() []logrus.Level
type ServiceConfig ¶
type ServiceHook ¶
func NewServiceHook ¶
func NewServiceHook(config ServiceConfig) *ServiceHook
func (*ServiceHook) Levels ¶
func (s *ServiceHook) Levels() []logrus.Level
Click to show internal directories.
Click to hide internal directories.