Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Loggers is convenient when you want to apply configuration to all // loggers Loggers = []*logrus.Logger{defaultLogger, grpcGo} )
Functions ¶
Types ¶
type HookLogger ¶ added in v1.67.0
type HookLogger struct {
// contains filtered or unexported fields
}
HookLogger is a wrapper around *logrus.Logger
func NewHookLogger ¶ added in v1.67.0
func NewHookLogger() *HookLogger
NewHookLogger creates a file logger, since both stderr and stdout will be displayed in git output
func (*HookLogger) Fatal ¶ added in v1.67.0
func (h *HookLogger) Fatal(err error)
Fatal logs an error at the Fatal level and writes a generic message to stderr
func (*HookLogger) Fatalf ¶ added in v1.67.0
func (h *HookLogger) Fatalf(format string, a ...interface{})
Fatalf logs a formatted error at the Fatal level
Click to show internal directories.
Click to hide internal directories.