Class: Sass::Rails::Logger

Inherits:
Logger::Base
  • Object
show all
Defined in:
lib/sass/rails/logger.rb

Instance Method Summary collapse

Instance Method Details

#_log(level, message) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/sass/rails/logger.rb', line 6

def _log(level, message)

  case level
    when :trace, :debug
      ::Rails.logger.debug message
    when :warn
      ::Rails.logger.warn message
    when :error
      ::Rails.logger.error message
    when :info
      ::Rails.logger.info message
  end
end