Documentation
¶
Index ¶
- type CustomLogger
- func (l *CustomLogger) Debug(args ...interface{})
- func (l *CustomLogger) Debugf(format string, args ...interface{})
- func (l *CustomLogger) Error(args ...interface{})
- func (l *CustomLogger) Errorf(format string, args ...interface{})
- func (l *CustomLogger) Fatal(args ...interface{})
- func (l *CustomLogger) Fatalf(format string, args ...interface{})
- func (l *CustomLogger) Info(args ...interface{})
- func (l *CustomLogger) Infof(format string, args ...interface{})
- func (l *CustomLogger) Panic(args ...interface{})
- func (l *CustomLogger) Panicf(format string, args ...interface{})
- func (l *CustomLogger) Setup()
- func (l *CustomLogger) Trace(args ...interface{})
- func (l *CustomLogger) Tracef(format string, args ...interface{})
- func (l *CustomLogger) Warn(args ...interface{})
- func (l *CustomLogger) Warnf(format string, args ...interface{})
- func (l *CustomLogger) WithFields(fields map[string]interface{}) IEntry
- type Fields
- type ICustomLogger
- type IEntry
- type Level
- type LoggerConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomLogger ¶
type CustomLogger struct { Config *LoggerConfig Adapter *logrus.Logger }
func InitLogger ¶
func InitLogger(config *LoggerConfig) *CustomLogger
func (*CustomLogger) Debug ¶
func (l *CustomLogger) Debug(args ...interface{})
func (*CustomLogger) Debugf ¶
func (l *CustomLogger) Debugf(format string, args ...interface{})
func (*CustomLogger) Error ¶
func (l *CustomLogger) Error(args ...interface{})
func (*CustomLogger) Errorf ¶
func (l *CustomLogger) Errorf(format string, args ...interface{})
func (*CustomLogger) Fatal ¶
func (l *CustomLogger) Fatal(args ...interface{})
func (*CustomLogger) Fatalf ¶
func (l *CustomLogger) Fatalf(format string, args ...interface{})
func (*CustomLogger) Info ¶
func (l *CustomLogger) Info(args ...interface{})
func (*CustomLogger) Infof ¶
func (l *CustomLogger) Infof(format string, args ...interface{})
func (*CustomLogger) Panic ¶
func (l *CustomLogger) Panic(args ...interface{})
func (*CustomLogger) Panicf ¶
func (l *CustomLogger) Panicf(format string, args ...interface{})
func (*CustomLogger) Setup ¶
func (l *CustomLogger) Setup()
func (*CustomLogger) Trace ¶
func (l *CustomLogger) Trace(args ...interface{})
func (*CustomLogger) Tracef ¶
func (l *CustomLogger) Tracef(format string, args ...interface{})
func (*CustomLogger) Warn ¶
func (l *CustomLogger) Warn(args ...interface{})
func (*CustomLogger) Warnf ¶
func (l *CustomLogger) Warnf(format string, args ...interface{})
func (*CustomLogger) WithFields ¶
func (l *CustomLogger) WithFields(fields map[string]interface{}) IEntry
type ICustomLogger ¶
type ICustomLogger interface { Setup() WithFields(fields map[string]interface{}) IEntry Trace(args ...interface{}) Debug(args ...interface{}) Info(args ...interface{}) Warn(args ...interface{}) Error(args ...interface{}) Fatal(args ...interface{}) Panic(args ...interface{}) Tracef(format string, args ...interface{}) Debugf(format string, args ...interface{}) Infof(format string, args ...interface{}) Warnf(format string, args ...interface{}) Errorf(format string, args ...interface{}) Fatalf(format string, args ...interface{}) Panicf(format string, args ...interface{}) }
type IEntry ¶
type IEntry interface { Trace(args ...interface{}) Debug(args ...interface{}) Info(args ...interface{}) Warn(args ...interface{}) Error(args ...interface{}) Fatal(args ...interface{}) Panic(args ...interface{}) }
Click to show internal directories.
Click to hide internal directories.