class Hippo::MultiDestinationLogger::Output
Public Class Methods
new()
click to toggle source
# File lib/hippo/logger.rb, line 7 def initialize @targets = [STDOUT] @targets.push( File.open("log/#{Hippo.config.environment}.log", "a") ) if File.writable?("log") end
Public Instance Methods
close()
click to toggle source
# File lib/hippo/logger.rb, line 18 def close @targets.each(&:close) end
write(*args)
click to toggle source
# File lib/hippo/logger.rb, line 14 def write(*args) @targets.each {|t| t.write(*args)} end