Module: Zenbox::Rails
- Defined in:
- lib/zenbox/rails.rb
Class Method Summary collapse
Class Method Details
.initialize ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/zenbox/rails.rb', line 5 def self.initialize rails_logger = if defined?(::Rails.logger) ::Rails.logger elsif defined?(RAILS_DEFAULT_LOGGER) RAILS_DEFAULT_LOGGER end Zenbox.configure(true) do |config| config.logger = rails_logger end end |