Module: Sprinkle::Logger
- Included in:
- Object
- Defined in:
- lib/sprinkle.rb
Instance Method Summary collapse
-
#logger ⇒ Object
:nodoc:.
Instance Method Details
#logger ⇒ Object
:nodoc:
37 38 39 40 41 42 |
# File 'lib/sprinkle.rb', line 37 def logger # :nodoc: # ActiveSupport::BufferedLogger was deprecated and replaced by ActiveSupport::Logger in Rails 4. # Use ActiveSupport::Logger if available. active_support_logger = defined?(ActiveSupport::Logger) ? ActiveSupport::Logger : ActiveSupport::BufferedLogger @@__log__ ||= active_support_logger.new($stdout, active_support_logger::Severity::INFO) end |