class Slimy::Reporters::RailsLogReporter

reporter that logs to rails logs this will not send the data anywhere else

Public Class Methods

new(level: :debug) click to toggle source
# File lib/slimy/reporters/rails_log_reporter.rb, line 8
def initialize(level: :debug)
  @level = level
end

Public Instance Methods

log(msg) click to toggle source
# File lib/slimy/reporters/rails_log_reporter.rb, line 16
def log(msg)
  Rails.logger.send(@level, msg)
end
report(context) click to toggle source
# File lib/slimy/reporters/rails_log_reporter.rb, line 12
def report(context)
  log(context.debug_format)
end