Module: Dodgeball::Client::Logging
- Included in:
- Dodgeball::Client, Dodgeball::Client, Request
- Defined in:
- lib/dodgeball/client/logging.rb
Class Attribute Summary collapse
Class Method Summary collapse
Instance Method Summary collapse
Class Attribute Details
.logger ⇒ Object
33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/dodgeball/client/logging.rb', line 33 def logger return @logger if @logger base_logger = if defined?(Rails) Rails.logger else logger = Logger.new STDOUT logger.progname = 'Dodgeball::Client' logger end @logger = PrefixedLogger.new(base_logger, '[dodgeball-ruby]') end |