Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CustomWriter ¶ added in v1.2.0
type CustomWriter struct {
// contains filtered or unexported fields
}
CustomWriter forwards log messages to the application's logger
type Logger ¶
type Logger interface { SetLevel(string) With(Fields) *logger WithContext(context.Context) context.Context Errorf(string, ...interface{}) Infof(string, ...interface{}) Warnf(string, ...interface{}) Debugf(string, ...interface{}) }
Logger provides an interface for all used logger features regardless of logging backend
func FromContext ¶
FromContext returns a Logger from a context if it exists
Click to show internal directories.
Click to hide internal directories.