Method: Interlock.log

Defined in:
lib/interlock/interlock.rb

.log(msg) ⇒ Object



102
103
104
105
106
107
108
109
110
111
# File 'lib/interlock/interlock.rb', line 102

def log(msg)
  case Interlock.config[:log_level]
  when 'debug', 'info', 'warn', 'error'
    log_method = Interlock.config[:log_level]
  else
    log_method = :debug
  end
  
  RAILS_DEFAULT_LOGGER.send( log_method, msg )
end