An easy-to-parse, single-line logger for Elixir Phoenix and Plug applications, supporting logfmt, JSON, and custom formatting.
Logster is a logging library for Elixir Phoenix and Plug applications that transforms verbose, multi-line HTTP request logs into concise, single-line entries. It solves the problem of cumbersome, hard-to-parse production logs by outputting structured, machine-readable formats like logfmt or JSON. This makes logs significantly easier to search, analyze, and integrate with log management services.
Elixir developers building Phoenix web applications or Plug-based APIs who need production-ready, structured logging. It is particularly useful for teams using log aggregation and monitoring services like Better Stack, Papertrail, or similar platforms.
Developers choose Logster over default Phoenix logging because it provides single-line, structured output by default, which is optimized for machine parsing and integration. Its unique selling points include fine-grained, per-request configuration, support for multiple formatters (logfmt, JSON, custom), and the ability to add custom metadata, offering greater control and flexibility than basic logging.
Easily parsable single line, plain text and JSON logger for Plug and Phoenix applications
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Transforms verbose Phoenix request logs into concise, key=value or JSON lines, making them easy to parse and integrate with log management services like Better Stack.
Supports logfmt, JSON, and custom formatters, providing flexibility for different logging pipelines and tools without locking users into a single format.
Allows per-request adjustments such as log level changes, field exclusion, and parameter filtering, enabling tailored logging for endpoints like health checks.
Offers convenience functions for structured logging outside web requests, with lazy evaluation support to avoid unnecessary computations when logging is disabled.
The JSON formatter does not guarantee valid JSON output due to Elixir Logger's own formatting, which can disrupt strict JSON log consumers without extra configuration.
Specifically designed for Phoenix and Plug, making it unsuitable for general Elixir applications or other web frameworks, limiting its scope.
Moving from v1 to v2 requires following a migration guide, indicating breaking changes that could involve significant refactoring for existing users.