TwP / logging

A flexible logging library for use in Ruby programs based on the design of Java's log4j library.
https://rubygems.org/gems/logging
MIT License
529 stars 100 forks source link

Handle simultaneous process startup #208

Closed TwP closed 5 years ago

TwP commented 5 years ago

There is a race condition in the File appender where two processes can attempt to open the same file at the same time. The changes here account for this by separating file opening from file creation.

Thanks to @sonots and his work fixing this same issue in the core Ruby Logger class. I've followed his approach to solve the same problem.