Versions in this module Expand all Collapse all v1 v1.0.0 Sep 11, 2020 Changes in this version + const NoSeverity + const NoValues + const SeverityLong + const SeverityShort + const ValuesMultiLine + const ValuesSingleLine + var Brief = Style + var Detailed = Style + var NoClock = FixedClock(time.Time{}) + var Normal = Style + var Raw = Style + func D(ctx context.Context, fmt string, args ...interface{}) + func E(ctx context.Context, fmt string, args ...interface{}) + func Enter(ctx context.Context, name string) context.Context + func Err(ctx context.Context, cause error, msg string) error + func Errf(ctx context.Context, cause error, fmt string, args ...interface{}) error + func F(ctx context.Context, stopProcess bool, fmt string, args ...interface{}) + func GetProcess(ctx context.Context) string + func GetTag(ctx context.Context) string + func GetTrace(ctx context.Context) []string + func HHMMSSsss(t time.Time) string + func I(ctx context.Context, fmt string, args ...interface{}) + func PutClock(ctx context.Context, c Clock) context.Context + func PutFilter(ctx context.Context, w Filter) context.Context + func PutHandler(ctx context.Context, w Handler) context.Context + func PutProcess(ctx context.Context, w string) context.Context + func PutStacktracer(ctx context.Context, s Stacktracer) context.Context + func PutTag(ctx context.Context, w string) context.Context + func RegisterStyle(s Style) + func SubTest(ctx context.Context, t delegate) context.Context + func Testing(t delegate) context.Context + func W(ctx context.Context, fmt string, args ...interface{}) + type Broadcaster struct + func Broadcast(handlers ...Handler) *Broadcaster + func (b *Broadcaster) Close() + func (b *Broadcaster) Count() int + func (b *Broadcaster) Handle(m *Message) + func (b *Broadcaster) Listen(h Handler) (unlisten func()) + type Clock interface + Time func() time.Time + func GetClock(ctx context.Context) Clock + type Filter interface + ShowSeverity func(s Severity) bool + func GetFilter(ctx context.Context) Filter + type FixedClock time.Time + func (c FixedClock) Time() time.Time + type Handler interface + Close func() + Handle func(*Message) + func Channel(to Handler, size int) Handler + func GetHandler(ctx context.Context) Handler + func NewHandler(handle func(*Message), close func()) Handler + func OnClosed(h Handler, closed func()) Handler + func TestHandler(t delegate, s Style) Handler + type Indirect struct + func (i *Indirect) Close() + func (i *Indirect) Handle(m *Message) + func (i *Indirect) IsDefault() bool + func (i *Indirect) SetTarget(l Handler, isDefault bool) (Handler, bool) + func (i *Indirect) Target() Handler + type Logger struct + func Bind(ctx context.Context, v V) *Logger + func From(ctx context.Context) *Logger + func (l *Logger) D(fmt string, args ...interface{}) + func (l *Logger) E(fmt string, args ...interface{}) + func (l *Logger) Err(cause error, msg string) error + func (l *Logger) Errf(cause error, fmt string, args ...interface{}) error + func (l *Logger) F(fmt string, stopProcess bool, args ...interface{}) + func (l *Logger) Fatal(args ...interface{}) + func (l *Logger) Fatalf(format string, args ...interface{}) + func (l *Logger) Fatalln(args ...interface{}) + func (l *Logger) I(fmt string, args ...interface{}) + func (l *Logger) Log(s Severity, stopProcess bool, f string) + func (l *Logger) Logf(s Severity, stopProcess bool, fmt string, args ...interface{}) + func (l *Logger) Message(s Severity, stopProcess bool, text string) *Message + func (l *Logger) Messagef(s Severity, stopProcess bool, text string, args ...interface{}) *Message + func (l *Logger) Print(args ...interface{}) + func (l *Logger) Printf(format string, args ...interface{}) + func (l *Logger) Println(args ...interface{}) + func (l *Logger) SetFilter(f Filter) *Logger + func (l *Logger) W(fmt string, args ...interface{}) + func (l *Logger) Writer(s Severity) io.WriteCloser + type Message struct + Callstack []*SourceLocation + Process string + Severity Severity + StopProcess bool + Tag string + Text string + Time time.Time + Trace Trace + Values Values + type Severity int32 + const Debug + const Error + const Fatal + const Info + const Verbose + const Warning + func (s *Severity) Choose(c interface{}) + func (s *Severity) Chooser() flags.Chooser + func (s Severity) Short() string + func (s Severity) String() string + type SeverityFilter Severity + func (f SeverityFilter) ShowSeverity(s Severity) bool + type SeverityStacktracer Severity + func (s SeverityStacktracer) ShouldStacktrace(m *Message) bool + type SeverityStyle int + type SourceLocation struct + File string + Line int32 + type Stacktracer interface + ShouldStacktrace func(m *Message) bool + func GetStacktracer(ctx context.Context) Stacktracer + type Style struct + Name string + Process bool + Severity SeverityStyle + Tag bool + Timestamp bool + Trace bool + Values ValueStyle + func (s *Style) Choose(v interface{}) + func (s *Style) Chooser() flags.Chooser + func (s Style) Handler(w Writer) Handler + func (s Style) Print(msg *Message) string + func (s Style) String() string + type Trace []string + func (t Trace) String() string + type V map[string]interface + func (v V) Bind(ctx context.Context) context.Context + type Value struct + Name string + Value interface{} + type ValueStyle int + type Values []*Value + func (v Values) Len() int + func (v Values) Less(i, j int) bool + func (v Values) Swap(i, j int) + type Writer func(text string, severity Severity) + func Buffer() (Writer, *bytes.Buffer) + func Std() Writer + func Stdout() Writer Incompatible versions in this module v2.0.0+incompatible Jul 8, 2021