Versions in this module Expand all Collapse all v0 v0.2.0 Jul 27, 2016 Changes in this version type Logger + func NewSyncLogger(logger Logger) Logger + type SyncWriter struct + func NewSyncWriter(w io.Writer) *SyncWriter + func (w *SyncWriter) Write(p []byte) (n int, err error) v0.1.0 Jun 7, 2016 Changes in this version + var DefaultCaller = Caller(3) + var ErrMissingValue = errors.New("(MISSING)") + func NewStdlibAdapter(logger Logger, options ...StdlibAdapterOption) io.Writer + type Context struct + func NewContext(logger Logger) *Context + func (l *Context) Log(keyvals ...interface{}) error + func (l *Context) With(keyvals ...interface{}) *Context + func (l *Context) WithPrefix(keyvals ...interface{}) *Context + type Logger interface + Log func(keyvals ...interface{}) error + func NewJSONLogger(w io.Writer) Logger + func NewLogfmtLogger(w io.Writer) Logger + func NewNopLogger() 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 + var DefaultTimestamp Valuer = func() interface{} { ... } + var DefaultTimestampUTC Valuer = func() interface{} { ... } + func Caller(depth int) Valuer + func Timestamp(t func() time.Time) Valuer