minato_logger 0.2.6 → 0.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e5cca6802e6043f3267c2edc5bf7ebaec032e34f8acdbbea932ef1d00109b182
4
- data.tar.gz: 210343998fbd313238c6cc518b1c17f87ae0c2dc6292f575a96ad72dbed7dced
3
+ metadata.gz: d77c7aab1bb4e5939f91c3cc06bcf56423cb4e2c6b9efe338271c4629300906b
4
+ data.tar.gz: a5aa42b205800cca6917b530c1b5766d44ffe5e9d1eea3a4714386bb8353aa43
5
5
  SHA512:
6
- metadata.gz: ec33233c8e3ede2fe790217c88e6871a24c1524db0dd027261692b9e2133a6edf8160d65da1076d0da41ae04564ff2d3ca9805c343d35cb647d81d1dac514113
7
- data.tar.gz: 3504f55036084964dd9f1f445c15658e1279fe5d8204556bb9fe3e62980b06d174d6de9231f12a4ec33bb54679f933616ca802fdb7a836683c0235f39b9936cf
6
+ metadata.gz: a0e78384ba7526a6da5d834c25c336ef0bae003ab81bf51053fcd294fe07b881ebb15782001f358e4ea56826da4cfff9a5426565b8b961b2e53cc83b74490edf
7
+ data.tar.gz: 54d4958766e783155b2b372e76ffe2004e62fafbef7c18d2cea2a94625e952ebccd05258fe58e06f2b2515a54602cddf40beecf66a15cf2b52656e6072e1fb4f
@@ -2,15 +2,17 @@
2
2
 
3
3
  require 'rails'
4
4
  require_relative 'middlewares/request_response_logger'
5
+ require_relative 'configuration'
5
6
 
6
7
  module MinatoLogger
7
8
  class Engine < ::Rails::Engine
8
9
  isolate_namespace MinatoLogger
9
10
 
10
11
  initializer 'minato_logger.add_middleware' do |app|
12
+ app.config.minato_logger = MinatoLogger::Configuration.default
11
13
  app.config.colorize_logging = false if Rails.env.production?
12
14
  if defined? Minato::Trace::Middleware::IntegrateWithCloudLogging
13
- app.config.middleware.use Minato::Trace::Middleware::IntegrateWithCloudLogging
15
+ app.config.minato_logger.middleware.use Minato::Trace::Middleware::IntegrateWithCloudLogging
14
16
  end
15
17
  app.config.middleware.insert_after ActionDispatch::RequestId, MinatoLogger::Middlewares::RequestResponseLogger
16
18
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MinatoLogger
4
- VERSION = '0.2.6'
4
+ VERSION = '0.2.7'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minato_logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ferreri