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

Version Path
rhosync-2.1.18.beta2 bench/lib/bench/logging.rb
rhosync-2.1.18.beta1 bench/lib/bench/logging.rb
rhosync-2.1.17 bench/lib/bench/logging.rb
rhosync-2.1.17.beta7 bench/lib/bench/logging.rb
rhosync-2.1.17.beta6 bench/lib/bench/logging.rb
rhosync-2.1.17.beta5 bench/lib/bench/logging.rb
rhosync-2.1.17.beta4 bench/lib/bench/logging.rb
rhosync-2.1.17.beta3 bench/lib/bench/logging.rb
rhosync-2.1.17.beta2 bench/lib/bench/logging.rb
rhosync-2.1.17.beta1 bench/lib/bench/logging.rb
rhosync-2.1.16 bench/lib/bench/logging.rb
rhosync-2.1.15 bench/lib/bench/logging.rb
rhosync-2.1.14 bench/lib/bench/logging.rb
rhosync-2.1.13 bench/lib/bench/logging.rb
rhosync-2.1.12 bench/lib/bench/logging.rb
rhosync-2.1.11 bench/lib/bench/logging.rb
rhosync-2.1.10 bench/lib/bench/logging.rb
rhosync-2.1.7 bench/lib/bench/logging.rb
rhosync-2.1.6 bench/lib/bench/logging.rb
rhosync-2.1.3 bench/lib/bench/logging.rb