rails_custom_logging 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 5a8cf2972315f37dc34b1a93b0a35c9f16fcf5a4446c1be943185976aa8b4ded
4
+ data.tar.gz: 77b245d3dd1cc94996f9c2192efaf3bd05e53c3d2a0011b1e0979ca940c7fa16
5
+ SHA512:
6
+ metadata.gz: 93e886789b96665662ad93e05f166f5fff1bc5ef1d68dd45e84c501273db2b9f413f4f13b812c92017f6c370777e7ae72bdb8ab12f6d6d171d8b9a1dd7072944
7
+ data.tar.gz: 40490845dda83e4a27d6d340426441d1a9a410629d0a602c91f5b8dea83775d3be4d499826a22d410cbda1ed683da45038d500570e046a3734dd0e712defc360
@@ -0,0 +1,8 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
@@ -0,0 +1,84 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or
22
+ advances of any kind
23
+ * Trolling, insulting or derogatory comments, and personal or political attacks
24
+ * Public or private harassment
25
+ * Publishing others' private information, such as a physical or email
26
+ address, without their explicit permission
27
+ * Other conduct which could reasonably be considered inappropriate in a
28
+ professional setting
29
+
30
+ ## Enforcement Responsibilities
31
+
32
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
+
34
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
+
36
+ ## Scope
37
+
38
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
+
40
+ ## Enforcement
41
+
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at cocchi.c@gmail.com. All complaints will be reviewed and investigated promptly and fairly.
43
+
44
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
+
46
+ ## Enforcement Guidelines
47
+
48
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
+
50
+ ### 1. Correction
51
+
52
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
+
54
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
+
56
+ ### 2. Warning
57
+
58
+ **Community Impact**: A violation through a single incident or series of actions.
59
+
60
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
+
62
+ ### 3. Temporary Ban
63
+
64
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
+
66
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
+
68
+ ### 4. Permanent Ban
69
+
70
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
+
72
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
73
+
74
+ ## Attribution
75
+
76
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
+ available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
+
79
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
+
81
+ [homepage]: https://www.contributor-covenant.org
82
+
83
+ For answers to common questions about this code of conduct, see the FAQ at
84
+ https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/Gemfile ADDED
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ # Specify your gem's dependencies in rails_custom_logging.gemspec
6
+ gemspec
7
+
8
+ gem "rake", "~> 13.0"
9
+ gem "minitest", "~> 5.0"
@@ -0,0 +1,64 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ rails_custom_logging (0.1.0)
5
+ actionpack (>= 5.2, < 7)
6
+ activesupport (>= 5.2, < 7)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ actionpack (5.2.4.4)
12
+ actionview (= 5.2.4.4)
13
+ activesupport (= 5.2.4.4)
14
+ rack (~> 2.0, >= 2.0.8)
15
+ rack-test (>= 0.6.3)
16
+ rails-dom-testing (~> 2.0)
17
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
18
+ actionview (5.2.4.4)
19
+ activesupport (= 5.2.4.4)
20
+ builder (~> 3.1)
21
+ erubi (~> 1.4)
22
+ rails-dom-testing (~> 2.0)
23
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
24
+ activesupport (5.2.4.4)
25
+ concurrent-ruby (~> 1.0, >= 1.0.2)
26
+ i18n (>= 0.7, < 2)
27
+ minitest (~> 5.1)
28
+ tzinfo (~> 1.1)
29
+ builder (3.2.4)
30
+ concurrent-ruby (1.1.8)
31
+ crass (1.0.6)
32
+ erubi (1.10.0)
33
+ i18n (1.8.7)
34
+ concurrent-ruby (~> 1.0)
35
+ loofah (2.9.0)
36
+ crass (~> 1.0.2)
37
+ nokogiri (>= 1.5.9)
38
+ minitest (5.14.3)
39
+ nokogiri (1.11.1-x86_64-darwin)
40
+ racc (~> 1.4)
41
+ racc (1.5.2)
42
+ rack (2.2.3)
43
+ rack-test (1.1.0)
44
+ rack (>= 1.0, < 3)
45
+ rails-dom-testing (2.0.3)
46
+ activesupport (>= 4.2.0)
47
+ nokogiri (>= 1.6)
48
+ rails-html-sanitizer (1.3.0)
49
+ loofah (~> 2.3)
50
+ rake (13.0.3)
51
+ thread_safe (0.3.6)
52
+ tzinfo (1.2.9)
53
+ thread_safe (~> 0.1)
54
+
55
+ PLATFORMS
56
+ x86_64-darwin-19
57
+
58
+ DEPENDENCIES
59
+ minitest (~> 5.0)
60
+ rails_custom_logging!
61
+ rake (~> 13.0)
62
+
63
+ BUNDLED WITH
64
+ 2.2.5
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2021 ccocchi
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,43 @@
1
+ # RailsCustomLogging
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/rails_custom_logging`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'rails_custom_logging'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle install
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install rails_custom_logging
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
+
31
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/ccocchi/rails_custom_logging. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/ccocchi/rails_custom_logging/blob/master/CODE_OF_CONDUCT.md).
36
+
37
+ ## License
38
+
39
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
40
+
41
+ ## Code of Conduct
42
+
43
+ Everyone interacting in the RailsCustomLogging project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/ccocchi/rails_custom_logging/blob/master/CODE_OF_CONDUCT.md).
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rake/testtask"
5
+
6
+ Rake::TestTask.new(:test) do |t|
7
+ t.libs << "test"
8
+ t.libs << "lib"
9
+ t.test_files = FileList["test/**/*_test.rb"]
10
+ end
11
+
12
+ task default: :test
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require "bundler/setup"
5
+ require "rails_custom_logging"
6
+
7
+ # You can add fixtures and/or initialization code here to make experimenting
8
+ # with your gem easier. You can also use a different console, if you like.
9
+
10
+ # (If you use this, don't forget to add pry to your Gemfile!)
11
+ # require "pry"
12
+ # Pry.start
13
+
14
+ require "irb"
15
+ IRB.start(__FILE__)
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,41 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'rails_custom_logging/version'
4
+ require_relative 'rails_custom_logging/configuration'
5
+ require_relative 'rails_custom_logging/subscribers/action_controller'
6
+ require_relative 'rails_custom_logging/transformers/default'
7
+ require_relative 'rails_custom_logging/formatters/key_value'
8
+ require_relative 'rails_custom_logging/railtie' if defined?(Rails)
9
+
10
+ module RailsCustomLogging
11
+ class Error < StandardError; end
12
+
13
+ def self.setup(app)
14
+ # Remove Rails default subscribers
15
+ ActionController::LogSubscriber.detach_from :action_controller
16
+ ActionView::LogSubscriber.detach_from :action_view
17
+
18
+ # Add our own
19
+ Subscribers::ActionController.attach_to :action_controller
20
+ end
21
+
22
+ def self.configure
23
+ yield configuration
24
+ end
25
+
26
+ def self.configuration
27
+ @_configuration ||= Configuration.new
28
+ end
29
+
30
+ def self.formatter
31
+ configuration.formatter
32
+ end
33
+
34
+ def self.transformer
35
+ configuration.transformer
36
+ end
37
+
38
+ def self.enabled?
39
+ configuration.enabled == true
40
+ end
41
+ end
@@ -0,0 +1,11 @@
1
+ module RailsCustomLogging
2
+ class Configuration
3
+ attr_accessor :formatter, :enabled, :transformer
4
+
5
+ def initialize
6
+ @enabled = false
7
+ @formatter = Formatters::KeyValue
8
+ @transformer = Transformers::Default
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,36 @@
1
+ # frozen_string_literal: true
2
+
3
+ module RailsCustomLogging
4
+ module Formatters
5
+ module KeyValue
6
+
7
+ # MRI trick to force the order of the payload keys with a very light cost of a single
8
+ # merge. MRI hash's `to_a` method will return values in the order in which they are
9
+ # defined by implemention. `merge` follows the same pattern.
10
+ #
11
+ # If you're using another implemention of Ruby (jRuby/truffleruby) you might end up
12
+ # with unordered keys.
13
+ #
14
+ ORDERED_HASH = {
15
+ method: nil, path: nil, params: nil, format: nil, status: nil, controller: nil,
16
+ action: nil, duration: nil, db_runtime: nil, view_runtime: nil, allocations: nil
17
+ }
18
+
19
+ class << self
20
+ def call(payload)
21
+ ordered_payload = ORDERED_HASH.merge(payload)
22
+ ordered_payload.compact!
23
+
24
+ ordered_payload.map { |key, value| format(key, value) }.join(' ')
25
+ end
26
+
27
+ private
28
+
29
+ def format(key, value)
30
+ formatted_value = value.is_a?(Float) ? Kernel.format('%.2f', value) : value
31
+ "#{key}=#{formatted_value}"
32
+ end
33
+ end
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,49 @@
1
+ # Backport `detach_from` method added in Rails 6
2
+ # https://github.com/rails/rails/blob/v6.1.1/activesupport/lib/active_support/subscriber.rb
3
+ #
4
+ module RailsCustomLogging
5
+ module ActiveSupport
6
+ module Subscriber
7
+ def detach_from(namespace, notifier = ::ActiveSupport::Notifications)
8
+ @namespace = namespace
9
+ @subscriber = subscribers.find { |s| s.instance_of?(self) }
10
+ @notifier = notifier
11
+
12
+ return unless subscriber
13
+
14
+ subscribers.delete(subscriber)
15
+
16
+ # Remove event subscriber for all existing methods on the class.
17
+ subscriber.public_methods(false).each do |event|
18
+ remove_event_subscriber(event)
19
+ end
20
+
21
+ # Reset notifier so that event subscribers will not add for new methods added to the class.
22
+ @notifier = nil
23
+ end
24
+
25
+ private
26
+
27
+ def invalid_event?(event)
28
+ %i[start finish].include?(event.to_sym)
29
+ end
30
+
31
+ def remove_event_subscriber(event)
32
+ return if invalid_event?(event)
33
+
34
+ pattern = "#{event}.#{namespace}"
35
+
36
+ return unless subscriber.patterns.include?(pattern)
37
+
38
+ subscriber.patterns.delete(pattern)
39
+ ::ActiveSupport::Notifications.notifier.listeners_for(pattern).each do |li|
40
+ if li.instance_variable_get(:@delegate) == subscriber
41
+ notifier.unsubscribe(li)
42
+ end
43
+ end
44
+ end
45
+ end
46
+ end
47
+ end
48
+
49
+ ::ActiveSupport::Subscriber.extend(RailsCustomLogging::ActiveSupport::Subscriber)
@@ -0,0 +1,18 @@
1
+ module RailsCustomLogging
2
+ module Rack
3
+ # Replace `Rails::Rack::Logger` middleware with this one to avoid pesky Rack logs
4
+ # lines like `Started GET /`.
5
+ #
6
+ class Logger
7
+ def initialize(app)
8
+ @app = app
9
+ end
10
+
11
+ def call(env)
12
+ @app.call(env)
13
+ ensure
14
+ ::ActiveSupport::LogSubscriber.flush_all!
15
+ end
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,22 @@
1
+ require_relative 'rails_ext/rack/logger'
2
+
3
+ module RailsCustomLogging
4
+ class Railtie < Rails::Railtie
5
+ initializer 'rails_custom_logging.middleware', after: :load_config_initializers do |app|
6
+ if RailsCustomLogging.enabled?
7
+ app.middleware.swap Rails::Rack::Logger, RailsCustomLogging::Rack::Logger
8
+ end
9
+ end
10
+
11
+ config.after_initialize do |app|
12
+ if RailsCustomLogging.enabled?
13
+ if Rails::VERSION::MAJOR < 6
14
+ # Adds missing `detach_from` method in subscriber
15
+ require 'rails_custom_logging/rails_ext/active_support/subscriber'
16
+ end
17
+
18
+ RailsCustomLogging.setup(app)
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,12 @@
1
+ module RailsCustomLogging
2
+ module Subscribers
3
+ class ActionController < ::ActiveSupport::LogSubscriber
4
+ def process_action(event)
5
+ info do
6
+ payload = RailsCustomLogging.transformer.call(event)
7
+ RailsCustomLogging.formatter.call(payload)
8
+ end
9
+ end
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ module RailsCustomLogging
4
+ module Transformers
5
+ module Default
6
+ def self.call(event)
7
+ payload = event.payload.dup
8
+
9
+ payload[:params] = payload[:params]&.except('action', 'controller', 'id')
10
+ payload[:duration] = event.duration
11
+
12
+ payload.delete(:headers)
13
+ payload.delete(:params) if payload[:params]&.empty?
14
+
15
+ payload
16
+ end
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module RailsCustomLogging
4
+ VERSION = "0.1.0"
5
+ end
@@ -0,0 +1,36 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "lib/rails_custom_logging/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "rails_custom_logging"
7
+ spec.version = RailsCustomLogging::VERSION
8
+ spec.authors = ["Christopher Cocchi-Perrier"]
9
+ spec.email = ["cocchi.c@gmail.com"]
10
+
11
+ spec.summary = "Replace Rails' verbose logs with anything you like"
12
+
13
+ spec.description = <<~DESC
14
+ Replace Rails' verbose logs with anything you like, from one-liner keys/values to even more verbose logging (it you think that's possible).
15
+ DESC
16
+
17
+ spec.homepage = "https://github.com/ccocchi/rails_custom_logs"
18
+ spec.license = "MIT"
19
+ spec.required_ruby_version = Gem::Requirement.new(">= 2.5.0")
20
+
21
+ spec.metadata["homepage_uri"] = spec.homepage
22
+ spec.metadata["source_code_uri"] = spec.homepage
23
+ # spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here."
24
+
25
+ # Specify which files should be added to the gem when it is released.
26
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
27
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
28
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{\Atest/}) }
29
+ end
30
+ spec.bindir = "exe"
31
+ spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
32
+ spec.require_paths = ["lib"]
33
+
34
+ spec.add_dependency "activesupport", ">= 5.2", "< 7"
35
+ spec.add_dependency "actionpack", ">= 5.2", "< 7"
36
+ end
metadata ADDED
@@ -0,0 +1,107 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rails_custom_logging
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Christopher Cocchi-Perrier
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2021-01-29 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: activesupport
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '5.2'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '7'
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '5.2'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '7'
33
+ - !ruby/object:Gem::Dependency
34
+ name: actionpack
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: '5.2'
40
+ - - "<"
41
+ - !ruby/object:Gem::Version
42
+ version: '7'
43
+ type: :runtime
44
+ prerelease: false
45
+ version_requirements: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - ">="
48
+ - !ruby/object:Gem::Version
49
+ version: '5.2'
50
+ - - "<"
51
+ - !ruby/object:Gem::Version
52
+ version: '7'
53
+ description: 'Replace Rails'' verbose logs with anything you like, from one-liner
54
+ keys/values to even more verbose logging (it you think that''s possible).
55
+
56
+ '
57
+ email:
58
+ - cocchi.c@gmail.com
59
+ executables: []
60
+ extensions: []
61
+ extra_rdoc_files: []
62
+ files:
63
+ - ".gitignore"
64
+ - CODE_OF_CONDUCT.md
65
+ - Gemfile
66
+ - Gemfile.lock
67
+ - LICENSE.txt
68
+ - README.md
69
+ - Rakefile
70
+ - bin/console
71
+ - bin/setup
72
+ - lib/rails_custom_logging.rb
73
+ - lib/rails_custom_logging/configuration.rb
74
+ - lib/rails_custom_logging/formatters/key_value.rb
75
+ - lib/rails_custom_logging/rails_ext/active_support/subscriber.rb
76
+ - lib/rails_custom_logging/rails_ext/rack/logger.rb
77
+ - lib/rails_custom_logging/railtie.rb
78
+ - lib/rails_custom_logging/subscribers/action_controller.rb
79
+ - lib/rails_custom_logging/transformers/default.rb
80
+ - lib/rails_custom_logging/version.rb
81
+ - rails_custom_logging.gemspec
82
+ homepage: https://github.com/ccocchi/rails_custom_logs
83
+ licenses:
84
+ - MIT
85
+ metadata:
86
+ homepage_uri: https://github.com/ccocchi/rails_custom_logs
87
+ source_code_uri: https://github.com/ccocchi/rails_custom_logs
88
+ post_install_message:
89
+ rdoc_options: []
90
+ require_paths:
91
+ - lib
92
+ required_ruby_version: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: 2.5.0
97
+ required_rubygems_version: !ruby/object:Gem::Requirement
98
+ requirements:
99
+ - - ">="
100
+ - !ruby/object:Gem::Version
101
+ version: '0'
102
+ requirements: []
103
+ rubygems_version: 3.1.4
104
+ signing_key:
105
+ specification_version: 4
106
+ summary: Replace Rails' verbose logs with anything you like
107
+ test_files: []