hooks

package
v0.0.0-...-61829c1 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CallStackHook

type CallStackHook struct {
}

func NewCallStackHook

func NewCallStackHook() *CallStackHook

func (*CallStackHook) Fire

func (hook *CallStackHook) Fire(entry *logrus.Entry) error

func (*CallStackHook) Levels

func (hook *CallStackHook) Levels() []logrus.Level

type LogPrinterHook

type LogPrinterHook struct {
	// contains filtered or unexported fields
}

func NewLogPrinterForErrorHook

func NewLogPrinterForErrorHook() *LogPrinterHook

func NewLogPrinterHook

func NewLogPrinterHook() *LogPrinterHook

func (*LogPrinterHook) Fire

func (hook *LogPrinterHook) Fire(entry *logrus.Entry) error

func (*LogPrinterHook) Levels

func (hook *LogPrinterHook) Levels() []logrus.Level

type LogWriterHook

type LogWriterHook struct {
	// contains filtered or unexported fields
}

func NewLogWriterForErrorHook

func NewLogWriterForErrorHook(p string) *LogWriterHook

func NewLogWriterHook

func NewLogWriterHook(p string) *LogWriterHook

func (*LogWriterHook) Fire

func (hook *LogWriterHook) Fire(entry *logrus.Entry) error

func (*LogWriterHook) Levels

func (hook *LogWriterHook) Levels() []logrus.Level

type ProjectHook

type ProjectHook struct {
	Name string
}

func NewProjectHook

func NewProjectHook(name string) *ProjectHook

func (*ProjectHook) Fire

func (hook *ProjectHook) Fire(entry *logrus.Entry) error

func (*ProjectHook) Levels

func (hook *ProjectHook) Levels() []logrus.Level

Jump to

Keyboard shortcuts

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