Sha256: aae81ac1ab753ee0a1f7025ea202721a602ecf2f4bea1e51a317d059f40cdf07
Contents?: true
Size: 380 Bytes
Versions: 2
Compression:
Stored size: 380 Bytes
Contents
require 'log4r/outputter/outputter' require_relative '../../rpruby' module Rpruby # Custom ReportPortal outputter for 'log4r' gem class Log4rOutputter < Log4r::Outputter def canonical_log(logevent) synch { write(Log4r::LNAMES[logevent.level], format(logevent)) } end def write(level, data) Rpruby.send_log(level, data, Rpruby.now) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rpruby-1.2.2 | lib/rpruby/logging/log4r_outputter.rb |
rpruby-1.2.1 | lib/rpruby/logging/log4r_outputter.rb |