Documentation
¶
Index ¶
Constants ¶
View Source
const Error = Level("error")
Error sets level=error in the log output
View Source
const Fatal = Level("fatal")
Fatal sets level=fatal in the log output
View Source
const Info = Level("info")
Info is sets level=info in the log output
View Source
const StackTrace = st("stacktrace")
View Source
const Warn = Level("warn")
Info is sets level=warn in the log output
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Level ¶
type Level string
Level just wraps a string to be able to add Context specific to log levels
type LoggedError ¶ added in v0.13.0
type LoggedError struct {
// contains filtered or unexported fields
}
func (LoggedError) Err ¶ added in v0.13.0
func (l LoggedError) Err() error
type Logger ¶
type Logger interface {
Set(key string, value Valuer) Logger
With(ctxs ...Context) Logger
Info() Logger
Warn() Logger
Error() Logger
Fatal() Logger
Log(message string)
Logf(format string, args ...interface{})
Send()
LogError(error error) LoggedError
LogErrorf(format string, args ...interface{}) LoggedError
}
func NewBufferLogger ¶
func NewDefaultLogger ¶
func NewDefaultLogger() Logger
func NewJSONLogger ¶
func NewJSONLogger() Logger
func NewNopLogger ¶
func NewNopLogger() Logger
type Valuer ¶ added in v0.15.0
type Valuer interface {
// contains filtered or unexported methods
}
Valuer is an interface to deal with typing problems of just having an interface{} as the acceptable parameters Go-kit logging has a failure case if you attempt to throw any values into it. This is a way to guard our developers from having to worry about error cases of the lower logging framework.
func ByteBase64 ¶ added in v0.15.0
func ByteString ¶ added in v0.15.0
func TimeDuration ¶ added in v0.15.0
Click to show internal directories.
Click to hide internal directories.