当我为 Daemons (1.1.0) gem 设置日志记录参数时,我将如何实现与该行类似的行为?
logger = Logger.new('foo.log', 10, 1024000)
守护进程选项:
options = {
:ARGV => ['start'],
:dir_mode => :normal,
:dir => log_dir,
:multiple => false,
:ontop => false
:mode => :exec,
:backtrace => true,
:log_output => true
}