Class: RequestTrail::Configuration
- Inherits:
-
Object
- Object
- RequestTrail::Configuration
- Defined in:
- lib/request_trail/configuration.rb
Instance Attribute Summary collapse
-
#enabled ⇒ Object
Returns the value of attribute enabled.
-
#log_level ⇒ Object
Returns the value of attribute log_level.
- #logger ⇒ Object
-
#threshold_ms ⇒ Object
Returns the value of attribute threshold_ms.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
10 11 12 13 14 |
# File 'lib/request_trail/configuration.rb', line 10 def initialize @enabled = true @log_level = :info @threshold_ms = 0 end |
Instance Attribute Details
#enabled ⇒ Object
Returns the value of attribute enabled.
8 9 10 |
# File 'lib/request_trail/configuration.rb', line 8 def enabled @enabled end |
#log_level ⇒ Object
Returns the value of attribute log_level.
8 9 10 |
# File 'lib/request_trail/configuration.rb', line 8 def log_level @log_level end |
#logger ⇒ Object
16 17 18 |
# File 'lib/request_trail/configuration.rb', line 16 def logger @logger ||= rails_logger || Logger.new($stdout) end |
#threshold_ms ⇒ Object
Returns the value of attribute threshold_ms.
8 9 10 |
# File 'lib/request_trail/configuration.rb', line 8 def threshold_ms @threshold_ms end |