
Better Stack
BetterstackLogger is an MIT-licensed Elixir Logger backend for sending application logs to Better Stack Logs. It helps Elixir teams ship structured logger events to Better Stack with configurable batc
Replaces —

Who it's for
BetterstackLogger fits Phoenix and Elixir services that already use Better Stack Logs and want a Logger-native backend.
You need a general-purpose log pipeline for several vendors.
The flush and batch-size settings help teams manage log shipping behavior under normal application load.
Your logging requirements include traces, metrics, and logs through one telemetry pipeline.
The problem
Elixir applications already emit useful events through Logger, but getting those logs into an external log service often requires custom HTTP code or a backend adapter. Without a dedicated backend, teams duplicate log shipping code across applications. Log shipping also needs operational controls. Batch size, flush timing, metadata handling, and source identifiers matter when logs become part of incident response.
How it works
BetterstackLogger plugs into Elixir Logger through BetterstackLogger.HttpBackend.
The README documents flush_interval and max_batch_size options for controlling when log batches are sent.
Configuration can include metadata: :all or drop selected metadata keys before sending logs.
The README lists BETTERSTACK_URL, BETTERSTACK_API_KEY, and BETTERSTACK_SOURCE_ID as environment configuration options.
Features
- Elixir Logger backend
- Configurable batching
- Metadata controls
- Environment variable setup
Recommended for this setup
Strengths
- Native fit for Elixir apps: Using Logger backend configuration keeps log shipping aligned with standard Elixir application patterns.
- Operational settings are explicit: Batch timing, batch size, source ID, URL, and metadata behavior are documented as configurable values.
Trade-offs
- Targets Better Stack Logs only: The backend is specific to Better Stack Logs, so teams wanting vendor-neutral log routing should compare it with OpenTelemetry or another collector.
Tech stack
FAQ
BetterstackLogger is an Elixir Logger backend for sending logs to Better Stack Logs.
The README shows Elixir config and environment variables for URL, API key, source ID, batch timing, batch size, and metadata.
BetterstackLogger uses the MIT license according to repository metadata.