Process-safe Logger supports log rotations in multi-processes safely
OTHER License
testing ruby: 1.9.3, 2.0.0;
Process Safe Logger supports log rotations in multi-processes safely.
Ruby's standard Logger class originally have had a problem that it's log rotation function does not work safely in multi process environment. This gem fixes the problem.
The patch is already pull requested to the github.com:ruby/ruby and will be released with ruby 2.1.0.
gem install process_safe_logger
require 'process_safe_logger'
logger = ProcessSafeLogger.new('logfile.log', 3, 1024)
Option parameters are same with Ruby's Logger. See docs.ruby-lang.org:Logger.
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)Same with ruby.