The project is in a healthy, maintained state
Rails v8 ActiveSupport::Logger backported to Rails v5.2+ & Ruby 2.7+
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.0, >= 1.0.2
~> 3.13
~> 1.0, >= 1.0.6
~> 0.5, >= 0.5.2
~> 0.0.10
~> 2.5
~> 5.25, >= 5.25.1
>= 13
~> 0.1, >= 0.1.16
~> 18.2, >= 18.2.1
~> 3.6, >= 3.6.2
~> 0.9, >= 0.9.37
~> 6.8, >= 6.8.1

Runtime

~> 1.1, >= 1.1.4
~> 3.25, >= 3.25.0
~> 1.6, >= 1.6.1
~> 0.1
>= 0.0.2
 Project Readme

Activesupport::Logger

Version License: MIT Downloads Rank Open Source Helpers Depfu CodeCov Test Coverage Maintainability CI Supported Build CI Legacy Build CI Unsupported Build CI Heads Build CI Coverage Build CI Style Build


Liberapay Patrons Sponsor Me on Github Polar Shield Donate to my FLOSS or refugee efforts at ko-fi.com Donate to my FLOSS or refugee efforts using Patreon

This is an unofficial extraction of Rails' v8 ActiveSupport::Logger backported to work with Rails v5.2+ and Ruby 2.7+.

If the suite of gems this is part of is loaded in any version of Rails >= 5.2, it will replace the logging tooling completely.

Simplified, the load order is basically:

Above load order is handled for you in activesupport-tagged_logging (not this gem), so depend on that, not this. ;)

Installation

NOTE: Don't do this. Instead, use activesupport-tagged_logging (not this gem, but which uses this gem as a dependency).

Install the gem and add to the application's Gemfile by executing:

$ bundle add activesupport-logger

If bundler is not being used to manage dependencies, install the gem by executing:

$ gem install activesupport-logger

Usage

NOTE: Don't do this. Instead, use activesupport-tagged_logging (not this gem, but which uses this gem as a dependency, and also configures this gem for you).

require "activesupport-logger"

With activesupport-tagged_logging or activesupport-broadcast_logger gems

This gem is automatically depended on and configured by activesupport-broadcast_logger, which in turn is automatically depended on and configured by activesupport-tagged_logging so you don't need to do anything beyond adding activesupport-tagged_logging to your app's Gemfile, and configuring it.

IMPORTANT: If you are using activesupport-tagged_logging or activesupport-broadcast_logger, do not require activesupport-logger in your code. Load order matters.

General Info

Primary Namespaces Activesupport::Logger && ActiveSupport::Logger
documentation on Github.com, Latest release on RubyDoc.info, HEAD on RubyDoc.info
expert support Get help on Codementor
... 💖 Follow Me on LinkedIn Find Me on WellFound: Find Me on CrunchBase My LinkTree Follow Me on Ruby.Social Tweet @ Peter 💻 🌏

🤝 Contributing

If you need some ideas of where to help, you could work on adding more code coverage, or if it is already 💯 then check issues, or PRs, or use the gem and think about how it could be better.

Also, see CONTRIBUTING.md.

Code Coverage

Coverage Graph

🌈 Contributors

Contributors

Made with contributors-img.

Star History

Star History Chart

🪇 Code of Conduct

Everyone interacting in this project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.

📌 Versioning

This Library adheres to Semantic Versioning 2.0.0. Violations of this scheme should be reported as bugs. Specifically, if a minor or patch version is released that breaks backward compatibility, a new version should be immediately released that restores compatibility. Breaking changes to the public API will only be introduced with new major versions.

To get a better understanding of how SemVer is intended to work over a project's lifetime, read this article from the creator of SemVer:

As a result of this policy, you can (and should) specify a dependency on these libraries using the Pessimistic Version Constraint with two digits of precision.

For example:

spec.add_dependency("activesupport-logger", "~> 2.0")

See CHANGELOG.md for list of releases.

📄 License

The gem is available as open source under the terms of the MIT License License: MIT.

See LICENSE.txt for the official Copyright Notice.

© Copyright

🤑 One more thing

You made it to the bottom of the page, so perhaps you'll indulge me for another 20 seconds. I maintain many dozens of gems, including this one, because I want Ruby to be a great place for people to solve problems, big and small. Please consider supporting my efforts via the giant yellow link below, or one of the others at the head of this README.

Buy me a latte