Documentation
¶
Index ¶
- type DebugFileConfig
- type Handler
- func (h *Handler) Debug(a ...interface{})
- func (h *Handler) Debugf(format string, a ...interface{})
- func (h *Handler) Error(a ...interface{})
- func (h *Handler) Errorf(format string, a ...interface{})
- func (h *Handler) Info(a ...interface{})
- func (h *Handler) Infof(format string, a ...interface{})
- func (h *Handler) Warning(a ...interface{})
- func (h *Handler) Warningf(format string, a ...interface{})
- type Logger
- type OutputConfig
- type TerminalHook
- type VarLogHook
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DebugFileConfig ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewDebugFileLogger ¶
func NewDebugFileLogger(config DebugFileConfig) *Handler
func NewOutputLogger ¶
func NewOutputLogger(config OutputConfig) *Handler
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) Levels ¶
func (hook *VarLogHook) Levels() []logrus.Level
Click to show internal directories.
Click to hide internal directories.