Documentation
¶
Index ¶
- type LogLevel
- type Logger
- func (l *Logger) Debug(v ...interface{})
- func (l *Logger) Debugf(format string, v ...interface{})
- func (l *Logger) Error(v ...interface{})
- func (l *Logger) Errorf(format string, v ...interface{})
- func (l *Logger) Fatal(v ...interface{})
- func (l *Logger) Fatalf(format string, v ...interface{})
- func (l *Logger) Info(v ...interface{})
- func (l *Logger) Infof(format string, v ...interface{})
- func (l *Logger) Warning(v ...interface{})
- func (l *Logger) Warningf(format string, v ...interface{})
- func (l *Logger) WithLogLevel(logLevel LogLevel) *Logger
- func (l *Logger) WithService(service string) *Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogLevel ¶
type LogLevel int
func StringToLogLevel ¶
StringToLogLevel converts string to LogLevel, invalid strings will return InfoLevel
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger struct
func NewWithLogLevel ¶
NewWithLogLevel logger
func (*Logger) WithLogLevel ¶
WithLogLevel fork a new logger
func (*Logger) WithService ¶
WithService fork a new logger
Click to show internal directories.
Click to hide internal directories.