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



77
78
79
# File 'lib/liquor/extensions/rails.rb', line 77

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

#load(event) ⇒ Object



73
74
75
# File 'lib/liquor/extensions/rails.rb', line 73

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

#load_template(event) ⇒ Object



69
70
71
# File 'lib/liquor/extensions/rails.rb', line 69

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

#loggerObject



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

def logger
  ActionController::Base.logger
end