# File lib/fluent/supervisor.rb, line 30 def init if @path && @path != "-" @io = File.open(@path, "a") if @chuser || @chgroup chuid = @chuser ? `id -u #{@chuser}`.to_i : nil chgid = @chgroup ? `id -g #{@chgroup}`.to_i : nil File.chown(chuid, chgid, @path) end else @io = STDOUT end $log = Fluent::Log.new(@io, @level) $log.enable_color(false) if @path $log.enable_debug if @level <= Fluent::Log::LEVEL_DEBUG end
Generated with the Darkfish Rdoc Generator 2.