hooks

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: MIT Imports: 18 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

type CustomLogs struct{}

func (*CustomLogs) Fire

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

func (*CustomLogs) Levels

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