Documentation
¶
Overview ¶
Package apexlogs implements a handler for Apex Logs https://apex.sh/logs/.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler implementation.
func (*Handler) Close ¶
func (h *Handler) Close()
Close flushes any pending logs, and waits for flushing to complete. This method should be called before exiting your program to ensure entries have flushed properly.
func (*Handler) Flush ¶
func (h *Handler) Flush()
Flush any pending logs. This method is non-blocking.
type Option ¶
type Option func(*Handler)
Option function.
func WithBufferOptions ¶
func WithBufferOptions(options ...buffer.Option) Option
WithBufferOptions sets options for the underlying buffer used to batch logs.
func WithHTTPClient ¶
WithHTTPClient sets the HTTP client used for requests.
Click to show internal directories.
Click to hide internal directories.