Sha256: 3442c28c3f09c92f6b30fda460d65eca709cbc48f965df26c1db4ad1ef35c2eb
Contents?: true
Size: 354 Bytes
Versions: 49
Compression:
Stored size: 354 Bytes
Contents
module Bench module Logging def logger init_logger if Log4r::Logger['main'].nil? Log4r::Logger['main'] end def log_prefix "[T:%03d|I:%03d]" % [@thread_id,@iteration] end protected def init_logger logger = Log4r::Logger.new('main') logger.outputters = Log4r::Outputter.stdout end end end
Version data entries
49 entries across 49 versions & 1 rubygems