Module: WellRested
- Included in:
- API
- Defined in:
- lib/well_rested.rb,
lib/well_rested/api.rb,
lib/well_rested/base.rb,
lib/well_rested/utils.rb,
lib/well_rested/json_formatter.rb,
lib/well_rested/camel_case_formatter.rb
Defined Under Namespace
Modules: Utils Classes: API, Base, CamelCaseFormatter, JSONFormatter
Instance Method Summary collapse
Instance Method Details
#logger ⇒ Object
25 26 27 28 29 30 31 32 33 |
# File 'lib/well_rested.rb', line 25 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 |