logger

package
v0.12.19 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	FilePath string
}

type Handler

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

func New

func New(config Config) (*Handler, error)

func (*Handler) Debug

func (h *Handler) Debug(a ...interface{})

func (*Handler) Debugf added in v0.12.16

func (h *Handler) Debugf(format string, a ...interface{})

func (*Handler) Error

func (h *Handler) Error(a ...interface{})

func (*Handler) Errorf added in v0.12.16

func (h *Handler) Errorf(format string, a ...interface{})

func (*Handler) Info

func (h *Handler) Info(a ...interface{})

func (*Handler) Infof added in v0.12.16

func (h *Handler) Infof(format string, a ...interface{})

func (*Handler) Warning

func (h *Handler) Warning(a ...interface{})

func (*Handler) Warningf added in v0.12.16

func (h *Handler) Warningf(format string, a ...interface{})

type Logger

type Logger interface {
	Info(...interface{})
	Infof(string, ...interface{})
	Warning(a ...interface{})
	Warningf(string, ...interface{})
	Error(...interface{})
	Errorf(string, ...interface{})
	Debug(...interface{})
	Debugf(string, ...interface{})
}

type StdoutHook

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

func (*StdoutHook) Fire

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

func (*StdoutHook) Levels

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

type VarLogHook

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

func (*VarLogHook) Fire

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

func (*VarLogHook) Levels

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

Jump to

Keyboard shortcuts

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