Class: Stackify::Engine

Inherits:
Rails::Engine
  • Object
show all
Defined in:
lib/stackify/engine.rb

Instance Method Summary collapse

Instance Method Details

#set_console_logs(logger) ⇒ Object



42
43
44
45
46
47
48
49
50
51
# File 'lib/stackify/engine.rb', line 42

def set_console_logs logger
  # Handle the stdout logs from Action Controller
  ActionController::Base.logger = logger

  # Handle the stdout logs from Action View
  ActionView::Base.logger = logger

  # Handle the stdout logs from Active Record
  ActiveRecord::Base.logger = logger
end