Module: RailsApiBenchmark::Logging

Included in:
Core, Endpoint
Defined in:
lib/rails_api_benchmark/logging.rb

Class Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Class Attribute Details

.loggerObject



6
7
8
# File 'lib/rails_api_benchmark/logging.rb', line 6

def logger
  @logger ||= Logger.new(STDOUT)
end

Class Method Details

.included(base) ⇒ Object



11
12
13
14
15
16
17
# File 'lib/rails_api_benchmark/logging.rb', line 11

def self.included(base)
  class << base
    def logger
      Logging.logger
    end
  end
end

Instance Method Details

#loggerObject



19
20
21
# File 'lib/rails_api_benchmark/logging.rb', line 19

def logger
  Logging.logger
end