Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TCPLoggingHook ¶
TCPLoggingHook holds the context needed for installing a hook in the Sirupsen/logrus logging package.
func NewTCPLoggingHook ¶
func NewTCPLoggingHook(host, port string) (*TCPLoggingHook, error)
NewTCPLoggingHook creates a new TCPLoggingHook
func (*TCPLoggingHook) Fire ¶
func (hook *TCPLoggingHook) Fire(entry *logrus.Entry) error
Fire is called when a log event is fired.
func (*TCPLoggingHook) Levels ¶
func (hook *TCPLoggingHook) Levels() []logrus.Level
Levels returns the available logging levels.
Click to show internal directories.
Click to hide internal directories.