log

package
v0.0.101 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Logger *logrus.Logger

Logger is custom formatted text logger

Functions

This section is empty.

Types

type CustomLogger added in v0.0.65

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

CustomLogger is custom logger

type Hook added in v0.0.65

type Hook struct {
	Field string
	Skip  int

	Formatter func(file, function string, line int) string
	// contains filtered or unexported fields
}

Hook for file details logging

func NewHook added in v0.0.65

func NewHook(levels ...logrus.Level) *Hook

NewHook hooks file

func (*Hook) Fire added in v0.0.65

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

Fire defines formatter

func (*Hook) Levels added in v0.0.65

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

Levels define specific levels

Jump to

Keyboard shortcuts

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