Module: DynoscaleRuby::Logger
- Included in:
- Middleware, Recorder, Reporter
- Defined in:
- lib/dynoscale_ruby/logger.rb
Class Method Summary collapse
Class Method Details
.logger ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/dynoscale_ruby/logger.rb', line 6 def self.logger @@logger ||= if defined?(Rails) Rails.logger else ::Logger.new(STDOUT) end if ENV['DYNOSCALE_DEV'] @@logger.level = ::Logger::DEBUG else @@logger.level = ::Logger::WARN end @@logger end |