inforus

package module
v0.0.0-...-eaba7fb Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2018 License: MIT Imports: 5 Imported by: 0

README

Inforus

Inforus is a hook of Logrus to display the filename, function name, line number.

License

MIT

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddHook

func AddHook(file, line, function bool, levels []log.Level)

AddHook is ...

func AddHookDefault

func AddHookDefault()

AddHookDefault is ...

Types

type Hook

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

Hook is ...

func (Hook) Fire

func (h Hook) Fire(entry *log.Entry) error

Fire is ...

func (Hook) Levels

func (h Hook) Levels() []log.Level

Levels is ...

Jump to

Keyboard shortcuts

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