Sha256: e56dc99aff5336a139786d2a11a1e8511066fa2497cce6fda103296c36f80228

Contents?: true

Size: 330 Bytes

Versions: 4

Compression:

Stored size: 330 Bytes

Contents

$:.unshift File.join(File.dirname(__FILE__), '..', 'lib')

require 'strftime_logger'
require 'parallel'

logger = StrftimeLogger.new("#{__dir__}/test.log")
Parallel.map(['a', 'b'], :in_processes => 2) do |letter|
  3000.times do
    logger.info letter * 5000
  end
end

# egrep -e 'ab' -e 'ba' test.log
# これはまざらない

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
strftime_logger-0.0.4 spec/thread_safe/process_safe_check.rb
strftime_logger-0.0.3 spec/thread_safe/process_safe_check.rb
strftime_logger-0.0.2 spec/thread_safe/process_safe_check.rb
strftime_logger-0.0.1 spec/thread_safe/process_safe_check.rb