Module: WellRested
- Defined in:
- lib/well_rested/api.rb,
lib/well_rested-core.rb,
lib/well_rested/base.rb,
lib/well_rested/capi.rb,
lib/well_rested-core/version.rb,
lib/well_rested/core_formatter.rb
Defined Under Namespace
Modules: Core Classes: API, Base, CAPI, CoreFormatter
Instance Method Summary collapse
Instance Method Details
#logger ⇒ Object
16 17 18 19 20 21 22 23 24 |
# File 'lib/well_rested-core.rb', line 16 def logger return Rails.logger if Utils.class_exists? 'Rails' return @logger if @logger require 'logger' @logger = Logger.new(STDERR) @logger.datetime_format = "%H:%M:%S" @logger end |