Versions in this module Expand all Collapse all v1 v1.0.0 Nov 9, 2026 Changes in this version + const DefaultEndpoint + const LevelFatal + const Version + type Client struct + func New(apiKey string, opts ...Option) (*Client, error) + func (c *Client) Close(ctx context.Context) error + func (c *Client) Debug(msg string, args ...any) + func (c *Client) Error(msg string, args ...any) + func (c *Client) Fatal(msg string, args ...any) + func (c *Client) Flush(ctx context.Context) error + func (c *Client) Handler(opts *HandlerOptions) slog.Handler + func (c *Client) Info(msg string, args ...any) + func (c *Client) Warn(msg string, args ...any) + type HandlerOptions struct + AddSource bool + Level slog.Leveler + type Option func(*options) + func WithCaller(depth int) Option + func WithEndpoint(url string) Option + func WithEnvironment(env string) Option + func WithHTTPClient(client *http.Client) Option + func WithMaxQueue(n int) Option + func WithTimeout(timeout time.Duration) Option + func WithWarnings(warn func(message string)) Option + func WithoutAutoContext() Option