Documentation
¶
Index ¶
- func Colorize()
- func Debugf(ctx context.Context, msg string, args ...interface{})
- func Errorf(ctx context.Context, msg string, args ...interface{})
- func Fatalf(ctx context.Context, msg string, args ...interface{})
- func Infof(ctx context.Context, msg string, args ...interface{})
- func PostEvent(ctx context.Context, name string, givenTags Tags)
- func ResetColor()
- func SetDebug(to bool)
- func SetTrace(to bool)
- func Silence(to bool)
- func Tracef(ctx context.Context, msg string, args ...interface{})
- func UseSink(name string, newSink Sink)
- func Warnf(ctx context.Context, msg string, args ...interface{})
- func With(ctx context.Context, k string, v any) context.Context
- func WithAll(ctx context.Context, tags Tags) context.Context
- func WithSink(ctx context.Context, name string, newSink Sink) context.Context
- func WithSpan(ctx context.Context, name string, traced TraceFunc) error
- type Level
- type Sink
- type Tags
- type TerminalSink
- type TraceFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Level ¶
type Level int
Level represents a standard logging level.
type TerminalSink ¶
type TerminalSink struct{}
TerminalSink emits events to the terminal with optional colors.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.
