Versions in this module Expand all Collapse all v0 v0.10.5 Jun 22, 2020 Changes in this version + var DefaultCaller = Caller(3) + var DefaultTimestamp = TimestampFormat(time.Now, time.RFC3339Nano) + var DefaultTimestampUTC = TimestampFormat(func() time.Time { ... }, time.RFC3339Nano) + var ErrMissingValue = errors.New("(MISSING)") + func NewStdlibAdapter(logger Logger, options ...StdlibAdapterOption) io.Writer + func NewSyncWriter(w io.Writer) io.Writer + type Logger interface + Log func(keyvals ...interface{}) error + func NewJSONLogger(w io.Writer) Logger + func NewLogfmtLogger(w io.Writer) Logger + func NewNopLogger() Logger + func NewSyncLogger(logger Logger) Logger + func With(logger Logger, keyvals ...interface{}) Logger + func WithPrefix(logger Logger, keyvals ...interface{}) Logger + type LoggerFunc func(...interface{}) error + func (f LoggerFunc) Log(keyvals ...interface{}) error + type StdlibAdapter struct + func (a StdlibAdapter) Write(p []byte) (int, error) + type StdlibAdapterOption func(*StdlibAdapter) + func FileKey(key string) StdlibAdapterOption + func MessageKey(key string) StdlibAdapterOption + func TimestampKey(key string) StdlibAdapterOption + type StdlibWriter struct + func (w StdlibWriter) Write(p []byte) (int, error) + type SwapLogger struct + func (l *SwapLogger) Log(keyvals ...interface{}) error + func (l *SwapLogger) Swap(logger Logger) + type Valuer func() interface + func Caller(depth int) Valuer + func Timestamp(t func() time.Time) Valuer + func TimestampFormat(t func() time.Time, layout string) Valuer