Class: MinatoLogger::Configuration
- Inherits:
-
Object
- Object
- MinatoLogger::Configuration
- Defined in:
- lib/minato_logger/configuration.rb
Instance Attribute Summary collapse
-
#middleware ⇒ Object
readonly
Returns the value of attribute middleware.
-
#route_blacklist ⇒ Object
readonly
Returns the value of attribute route_blacklist.
-
#sensitive_headers ⇒ Object
readonly
Returns the value of attribute sensitive_headers.
Class Method Summary collapse
Instance Method Summary collapse
- #configure {|_self| ... } ⇒ Object
-
#initialize {|_self| ... } ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize {|_self| ... } ⇒ Configuration
Returns a new instance of Configuration.
7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/minato_logger/configuration.rb', line 7 def initialize @middleware = MinatoLogger::Middleware.new @route_blacklist = %w[/health/alive /health/ready] @sensitive_headers = %w[ AUTHORIZATION PROXY_AUTHORIZATION X_CSRF_TOKEN HTTP_AUTHORIZATION HTTP_PROXY_AUTHORIZATION HTTP_X_CSRF_TOKEN COOKIE HTTP_COOKIE ] yield(self) if block_given? end |
Instance Attribute Details
#middleware ⇒ Object (readonly)
Returns the value of attribute middleware.
5 6 7 |
# File 'lib/minato_logger/configuration.rb', line 5 def middleware @middleware end |
#route_blacklist ⇒ Object (readonly)
Returns the value of attribute route_blacklist.
5 6 7 |
# File 'lib/minato_logger/configuration.rb', line 5 def route_blacklist @route_blacklist end |
#sensitive_headers ⇒ Object (readonly)
Returns the value of attribute sensitive_headers.
5 6 7 |
# File 'lib/minato_logger/configuration.rb', line 5 def sensitive_headers @sensitive_headers end |
Class Method Details
.default ⇒ Object
19 20 21 |
# File 'lib/minato_logger/configuration.rb', line 19 def self.default @default ||= Configuration.new end |
Instance Method Details
#configure {|_self| ... } ⇒ Object
23 24 25 |
# File 'lib/minato_logger/configuration.rb', line 23 def configure yield(self) if block_given? end |