Documentation ¶
Index ¶
- Constants
- type Fields
- type GoKitIOLogger
- func (kl *GoKitIOLogger) Debug(message string)
- func (kl *GoKitIOLogger) Error(message string)
- func (kl *GoKitIOLogger) Info(message string)
- func (kl *GoKitIOLogger) SetLogLevel(loglevel LogLevel)
- func (kl *GoKitIOLogger) With(fields Fields) Logger
- func (kl *GoKitIOLogger) WithErr(err error) Logger
- func (kl *GoKitIOLogger) WithField(key string, value interface{}) Logger
- type LogLevel
- type Logger
- type TestLine
- type TestLogger
- func (tl *TestLogger) Debug(message string)
- func (tl *TestLogger) Error(message string)
- func (tl *TestLogger) Info(message string)
- func (tl *TestLogger) SetLogLevel(level LogLevel)
- func (tl *TestLogger) With(fields Fields) Logger
- func (tl *TestLogger) WithErr(err error) Logger
- func (tl *TestLogger) WithField(key string, value interface{}) Logger
- type TestOut
Constants ¶
View Source
const ( LevelDebug = LogLevel("debug") LevelInfo = LogLevel("info") LevelError = LogLevel("error") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoKitIOLogger ¶
type GoKitIOLogger struct {
// contains filtered or unexported fields
}
func (*GoKitIOLogger) Debug ¶
func (kl *GoKitIOLogger) Debug(message string)
func (*GoKitIOLogger) Error ¶
func (kl *GoKitIOLogger) Error(message string)
func (*GoKitIOLogger) Info ¶
func (kl *GoKitIOLogger) Info(message string)
func (*GoKitIOLogger) SetLogLevel ¶
func (kl *GoKitIOLogger) SetLogLevel(loglevel LogLevel)
func (*GoKitIOLogger) With ¶
func (kl *GoKitIOLogger) With(fields Fields) Logger
func (*GoKitIOLogger) WithErr ¶
func (kl *GoKitIOLogger) WithErr(err error) Logger
func (*GoKitIOLogger) WithField ¶
func (kl *GoKitIOLogger) WithField(key string, value interface{}) Logger
type Logger ¶
type Logger interface { SetLogLevel(loglevel LogLevel) WithField(key string, value interface{}) Logger WithErr(err error) Logger With(fields Fields) Logger Debug(message string) Info(message string) Error(message string) }
func NewGoKitIOLogger ¶
func NewTestLogger ¶
type TestLogger ¶
type TestLogger struct {
// contains filtered or unexported fields
}
func (*TestLogger) Debug ¶
func (tl *TestLogger) Debug(message string)
func (*TestLogger) Error ¶
func (tl *TestLogger) Error(message string)
func (*TestLogger) Info ¶
func (tl *TestLogger) Info(message string)
func (*TestLogger) SetLogLevel ¶
func (tl *TestLogger) SetLogLevel(level LogLevel)
func (*TestLogger) With ¶
func (tl *TestLogger) With(fields Fields) Logger
func (*TestLogger) WithErr ¶
func (tl *TestLogger) WithErr(err error) Logger
func (*TestLogger) WithField ¶
func (tl *TestLogger) WithField(key string, value interface{}) Logger
Click to show internal directories.
Click to hide internal directories.