logging

package
v0.0.0-...-6637ac4 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TCPLoggingHook

type TCPLoggingHook struct {
	Host    string
	Port    int
	UDPConn net.Conn
}

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.

Jump to

Keyboard shortcuts

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