Versions in this module Expand all Collapse all v0 v0.1.2 Aug 11, 2018 v0.1.1 May 8, 2018 Changes in this version + var DefaultTimeFormat = time.RFC3339 + var NilFilter = FilterFunc(func(_ context.Context, e Event) bool { ... }) + func Error(ctx context.Context, err error, xs ...Fer) + func Fatal(ctx context.Context, xs ...Fer) + func FatalErr(ctx context.Context, err error, xs ...Fer) + func Log(ctx context.Context, xs ...Fer) + func WithF(ctx context.Context, f F) context.Context + type Event struct + Data F + Message string + Time time.Time + type F map[string]interface + func (f F) Extend(other ...Fer) + func (f F) F() F + func FFromContext(ctx context.Context) (F, bool) + type Fer interface + F func() F + func Action(act string) Fer + func Debug(format string, args ...interface{}) Fer + func Info(format string, args ...interface{}) Fer + type Filter interface + Apply func(ctx context.Context, e Event) bool + Close func() + Run func() + type FilterFunc func(ctx context.Context, e Event) bool + func (ff FilterFunc) Apply(ctx context.Context, e Event) bool + func (ff FilterFunc) Close() + func (ff FilterFunc) Run() + type Formatter interface + Format func(ctx context.Context, e Event) ([]byte, error) + var DefaultFormatter Formatter + func NewTextFormatter() Formatter + type Logger struct + Filters []Filter + var DefaultLogger *Logger + func (l *Logger) Error(ctx context.Context, err error, xs ...Fer) + func (l *Logger) Fatal(ctx context.Context, xs ...Fer) + func (l *Logger) FatalErr(ctx context.Context, err error, xs ...Fer) + func (l *Logger) Log(ctx context.Context, xs ...Fer) + type TextFormatter struct + TimeFormat string + func (t *TextFormatter) Format(_ context.Context, e Event) ([]byte, error) + type WriterFilter struct + Formatter Formatter + Out io.Writer + func NewWriterFilter(out io.Writer, format Formatter) *WriterFilter + func (w *WriterFilter) Apply(ctx context.Context, e Event) bool + func (w *WriterFilter) Close() + func (w *WriterFilter) Run()