graylog

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2021 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMuxLogger

func NewMuxLogger(logger *logrus.Entry) func(http.Handler) http.Handler

NewMuxLogger returns a logging middleware.

Types

type Middleware

type Middleware interface {
	logrus.Hook
	Flush()
	SetLevel(string)
	SetEndpoint(string)
}

Middleware implements a runtime-configurable Graylog middleware. This allows you can change the log level and graylog endpoint at runtime. You need to call Flush() before exiting the program.

func NewMiddleware

func NewMiddleware(componentName string) Middleware

NewMiddleware returns a new Middleware.

Jump to

Keyboard shortcuts

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