logger

package
v1.0.23 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 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 DebugFileConfig

type DebugFileConfig struct {
	FilePath string
	FileMode os.FileMode
}

type Handler

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

func NewDebugFileLogger

func NewDebugFileLogger(config DebugFileConfig) *Handler

func NewOutputLogger

func NewOutputLogger(config OutputConfig) *Handler

func (*Handler) Debug

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

func (*Handler) Debugf

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

func (*Handler) Error

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

func (*Handler) Errorf

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

func (*Handler) Info

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

func (*Handler) Infof

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

func (*Handler) Warning

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

func (*Handler) Warningf

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 OutputConfig

type OutputConfig struct {
	IsTerminal bool
}

type TerminalHook added in v1.0.19

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

func (*TerminalHook) Fire added in v1.0.19

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

func (*TerminalHook) Levels added in v1.0.19

func (hook *TerminalHook) 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