module Project106::LogReporter
Public Instance Methods
report_log(message, level = :debug)
click to toggle source
Call to the rails default logger method with message and level level can be error, debug, info, etc
# File lib/project_106/log_reporter.rb, line 5 def report_log(message, level = :debug) if defined?(Rails) ::Rails.logger.send(level, message) else puts message end end