Class: Liquor::Rails::LogSubscriber

Inherits:
ActiveSupport::LogSubscriber
  • Object
show all
Defined in:
lib/liquor/extensions/rails.rb

Instance Method Summary collapse

Instance Method Details

#compile(event) ⇒ Object


88
89
90
# File 'lib/liquor/extensions/rails.rb', line 88

def compile(event)
  line(event, "Template Compile", color: CYAN)
end

#load(event) ⇒ Object


84
85
86
# File 'lib/liquor/extensions/rails.rb', line 84

def load(event)
  line(event, "Template Load All", color: CYAN)
end

#load_template(event) ⇒ Object


80
81
82
# File 'lib/liquor/extensions/rails.rb', line 80

def load_template(event)
  line(event, "  Template Load", color: WHITE, info: "#{event.payload[:name]}")
end

#loggerObject


92
93
94
# File 'lib/liquor/extensions/rails.rb', line 92

def logger
  ActionController::Base.logger
end