TextLogger
# File lib/fluent/logger/console_logger.rb, line 24 def initialize(out) super() require 'time' if out.is_a?(String) @io = File.open(out, "a") @on_reopen = Proc.new { @io.reopen(out, "a") } elsif out.respond_to?(:write) @io = out @on_reopen = Proc.new { } else raise "Invalid output: #{out.inspect}" end end
Generated with the Darkfish Rdoc Generator 2.