Overview
The Act::Fluent::Logger::RailsFluent logger is a powerful logging solution designed specifically for Rails applications, supporting versions 4 through 7. This logger enhances the default capabilities of Rails logging by integrating with Fluentd, allowing developers to streamline logging, improve log message management, and ensure logs are sent efficiently to their designated logging endpoints. Its seamless integration into the Rails environment makes it a valuable tool for maintaining robust logging practices in web applications.
This logger not only replaces the standard Rails logger but also provides flexible configurations that allow you to customize how and where your logs are sent. Whether you're handling log messages as strings or arrays, the Act::Fluent::Logger ensures that every log event can be captured in a way that suits your application’s needs.
Features
- Compatibility: Supports Rails versions 4, 5, 6, and 7, ensuring broad usability across many projects.
- Easy Installation: Simply add the logger to your application's Gemfile and execute a few commands to get started quickly.
- Configurable Logging: Define logging behavior through a
fluent-logger.yml file or environment variables, adapting to your deployment needs.
- Message Flexibility: Choose between logging messages as 'string' or 'array', offering versatility depending on your logging structure and needs.
- Custom Severity Keys: Log levels can be customized through severity keys like DEBUG, INFO, WARN, and ERROR for more granular control over logging outputs.
- TLS Support: Comes with an option to configure TLS settings, allowing for secure transmission of log messages.
- Real-time Logging: Logs are automatically collected and flushed during the request lifecycle, enhancing performance and reliability.
- Manual Logging Option: Offers the flexibility to be used as a separate logger and configured to flush logs manually, which can be significant if immediate log entry is required.