Module: Amazon::Util::Logging

Constant Summary collapse

@@AmazonLogger =
nil

Instance Method Summary collapse

Instance Method Details

#log(str) ⇒ Object



16
17
18
19
# File 'lib/amazon/util/logging.rb', line 16

def log( str )
  set_log 'ruby-aws.log' if @@AmazonLogger.nil?
  @@AmazonLogger.debug str
end

#set_log(filename) ⇒ Object



12
13
14
# File 'lib/amazon/util/logging.rb', line 12

def set_log( filename )
  @@AmazonLogger = Logger.new filename
end