hooks

package
v1.12.2 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewJSONColorFormatter

func NewJSONColorFormatter(parent string, pretty bool) logrus.Formatter

Types

type Context

type Context struct{}

func (*Context) Fire

func (c *Context) Fire(entry *logrus.Entry) error

func (*Context) Levels

func (c *Context) Levels() []logrus.Level

type CustomLogs added in v1.7.0

type CustomLogs struct{}

func (*CustomLogs) Fire added in v1.7.0

func (c *CustomLogs) Fire(entry *logrus.Entry) error

func (*CustomLogs) Levels added in v1.7.0

func (c *CustomLogs) Levels() []logrus.Level

type Error

type Error struct{}

func (*Error) Fire

func (l *Error) Fire(entry *logrus.Entry) error

func (*Error) Levels

func (l *Error) Levels() []logrus.Level

type JSONColorFormatter

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

func (*JSONColorFormatter) Format

func (jcf *JSONColorFormatter) Format(entry *logrus.Entry) ([]byte, error)

Jump to

Keyboard shortcuts

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