Class: FiltersTracer::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/filters_tracer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



13
14
15
# File 'lib/filters_tracer.rb', line 13

def initialize
  self.logger = defined?(::Rails) ? Rails.logger : Logger.new(STDOUT)
end

Instance Attribute Details

#loggerLogger

Returns:

  • (Logger)


11
12
13
# File 'lib/filters_tracer.rb', line 11

def logger
  @logger
end