Documentation
¶
Index ¶
- Constants
- Variables
- func GetLogLevel(level string) int
- type Fields
- type Logger
- func (this *Logger) Debug(args ...interface{})
- func (this *Logger) DebugWithFields(fields Fields, args ...interface{})
- func (this *Logger) Debugf(fmt string, args ...interface{})
- func (this *Logger) Error(args ...interface{})
- func (this *Logger) ErrorWithFields(fields Fields, args ...interface{})
- func (this *Logger) Errorf(fmt string, args ...interface{})
- func (this *Logger) Fatal(args ...interface{})
- func (this *Logger) FatalWithFields(fields Fields, args ...interface{})
- func (this *Logger) Fatalf(fmt string, args ...interface{})
- func (this *Logger) GetLogrus() *logrus.Logger
- func (this *Logger) Info(args ...interface{})
- func (this *Logger) InfoWithFields(fields Fields, args ...interface{})
- func (this *Logger) Infof(fmt string, args ...interface{})
- func (this *Logger) Panic(args ...interface{})
- func (this *Logger) PanicWithFields(fields Fields, args ...interface{})
- func (this *Logger) Panicf(fmt string, args ...interface{})
- func (this *Logger) SetFormatter(fmt string) error
- func (this *Logger) SetLogLevel(level int) error
- func (this *Logger) Warn(args ...interface{})
- func (this *Logger) WarnWithFields(fields Fields, args ...interface{})
- func (this *Logger) Warnf(fmt string, args ...interface{})
Constants ¶
Variables ¶
View Source
var (
NoFields = make(map[string]interface{})
)
Functions ¶
func GetLogLevel ¶
Types ¶
type Logger ¶
func NewDefault ¶
func (*Logger) DebugWithFields ¶
func (*Logger) ErrorWithFields ¶
func (*Logger) FatalWithFields ¶
func (*Logger) InfoWithFields ¶
func (*Logger) PanicWithFields ¶
func (*Logger) SetFormatter ¶
func (*Logger) SetLogLevel ¶
func (*Logger) WarnWithFields ¶
Click to show internal directories.
Click to hide internal directories.