class ReportPortal::Log4rOutputter

Custom ReportPortal outputter for 'log4r' gem

Public Instance Methods

canonical_log(logevent) click to toggle source
# File lib/report_portal/logging/log4r_outputter.rb, line 26
def canonical_log(logevent)
  synch { write(Log4r::LNAMES[logevent.level], format(logevent)) }
end
write(level, data) click to toggle source
# File lib/report_portal/logging/log4r_outputter.rb, line 30
def write(level, data)
  ReportPortal.send_log(level, data, ReportPortal.now)
end