Documentation ¶
Index ¶
- Variables
- func ErrorFields(message string, fields Fields)
- func SetLogLevel(level string)
- type CustomLogger
- func (c *CustomLogger) Debug(message string)
- func (c *CustomLogger) DebugFields(message string, fields Fields)
- func (c *CustomLogger) Debugf(message string, args ...interface{})
- func (c *CustomLogger) Error(message string)
- func (c *CustomLogger) ErrorFields(message string, fields Fields)
- func (c *CustomLogger) Errorf(message string, args ...interface{})
- func (c *CustomLogger) Fatal(message string)
- func (c *CustomLogger) FatalFields(message string, fields Fields)
- func (c *CustomLogger) Fatalf(message string, args ...interface{})
- func (c *CustomLogger) Info(message string)
- func (c *CustomLogger) InfoFields(message string, fields Fields)
- func (c *CustomLogger) Infof(message string, args ...interface{})
- func (c *CustomLogger) Panic(message string)
- func (c *CustomLogger) PanicFields(message string, fields Fields)
- func (c *CustomLogger) Panicf(message string, args ...interface{})
- func (c *CustomLogger) Warn(message string)
- func (c *CustomLogger) WarnFields(message string, fields Fields)
- func (c *CustomLogger) Warnf(message string, args ...interface{})
- type Fields
Constants ¶
This section is empty.
Variables ¶
View Source
var GlobalLogger = logrus.New()
GlobalLogger is the global logger
Functions ¶
func ErrorFields ¶
ErrorFields is a helper for logging fields to the global logger
Types ¶
type CustomLogger ¶
type CustomLogger struct {
// contains filtered or unexported fields
}
CustomLogger is a wrapper object to logrus
func NewCustomLogger ¶
func NewCustomLogger(prefix string) *CustomLogger
NewCustomLogger creates a new custom logger with the given prefix
func (*CustomLogger) DebugFields ¶
func (c *CustomLogger) DebugFields(message string, fields Fields)
DebugFields - message with fields
func (*CustomLogger) Debugf ¶
func (c *CustomLogger) Debugf(message string, args ...interface{})
Debugf - formatted message
func (*CustomLogger) ErrorFields ¶
func (c *CustomLogger) ErrorFields(message string, fields Fields)
ErrorFields - message with fields
func (*CustomLogger) Errorf ¶
func (c *CustomLogger) Errorf(message string, args ...interface{})
Errorf - formatted message
func (*CustomLogger) FatalFields ¶
func (c *CustomLogger) FatalFields(message string, fields Fields)
FatalFields - message with fields
func (*CustomLogger) Fatalf ¶
func (c *CustomLogger) Fatalf(message string, args ...interface{})
Fatalf - formatted message
func (*CustomLogger) InfoFields ¶
func (c *CustomLogger) InfoFields(message string, fields Fields)
InfoFields - message with fields
func (*CustomLogger) Infof ¶
func (c *CustomLogger) Infof(message string, args ...interface{})
Infof - formatted message
func (*CustomLogger) PanicFields ¶
func (c *CustomLogger) PanicFields(message string, fields Fields)
PanicFields - message with fields
func (*CustomLogger) Panicf ¶
func (c *CustomLogger) Panicf(message string, args ...interface{})
Panicf - formatted message
func (*CustomLogger) WarnFields ¶
func (c *CustomLogger) WarnFields(message string, fields Fields)
WarnFields - message with fields
func (*CustomLogger) Warnf ¶
func (c *CustomLogger) Warnf(message string, args ...interface{})
Warnf - formatted message
Click to show internal directories.
Click to hide internal directories.