Versions in this module Expand all Collapse all v0 v0.0.4 Mar 17, 2025 Changes in this version + var ErrComponentFailure = errors.New("failed to get caller information") + var ErrFieldTruncation = errors.New("some fields were truncated") + var ErrJSONConversion = errors.New("failed to convert input to JSON") + var ErrJSONIndentFailure = errors.New("failed to indent data into JSON") + var ErrJSONUnmarshal = errors.New("failed to unmarshal JSON") + var ErrUnexpectedType = errors.New("unexpected data type after JSON conversion") + func FormatDuration(d time.Duration) string + func NewTool(c Client) *defaultTool + type Blackbox interface + type Client interface + func NewClient(out io.Writer, l slog.Level, opts LogOptions) Client + type Key = string + const GoogleComponentKey + const GoogleMessageKey + const GoogleSeverityKey + const GoogleTimestampKey + type LogOption func(*LogOptions) + func WithLevelKey(k Key) LogOption + func WithMaxLen(maxLen uint) LogOption + func WithMessageKey(k Key) LogOption + func WithTimeKey(k Key) LogOption + type LogOptions struct + Keys map[string]string + MaxLen uint + func ApplyLogOptions(opts *LogOptions, modifiers ...LogOption) LogOptions