Feature Requests: Browse | Submit New | Admin

[#12853] Improved Logging Configuration

Date:
2007-08-06 16:27
Priority:
4
Submitted By:
David Parrott (valthon)
Assigned To:
Nobody (None)
Category:
Core
State:
Open
Summary:
Improved Logging Configuration

Detailed description
Logging is currently quite simplistic -- no log levels and it's always on.  We should figure out what functionality
we need/want and improve accordingly.

Add A Comment: Notepad

Please login


Followup

Message
Date: 2007-12-24 04:46
Sender: James Blair

In case it's helpful for others, I simply disable logging altogether
(the files can get very large, very fast). When I'm trying to
debug requests I'll turn them back on by simply uncommenting
out the lines in question. It's not beautiful code, but it gets
the job done. Here's what my "default" configuration
looks like:

require 'logger'

module Amazon
module Util
module Logging

  @@AmazonLogger = nil

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

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

end
end
end

Date: 2007-08-17 23:29
Sender: James Blair

Personally, I'd prefer logging to be disabled at first, but easily
enabled with a simple method call. If that method call also forced
me to provide a path, else it defaulted to the current path and
some generic filename (as we have today), that would be fine.

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

Field Old Value Date By
priority32007-08-23 16:08valthon