Class: AWS::S3::Logging::Log
- Inherits:
-
Object
- Object
- AWS::S3::Logging::Log
- Defined in:
- lib/aws/s3/logging.rb
Overview
A bucket log exposes requests made on the given bucket. Lines of the log represent a single request. The lines of a log can be accessed with the lines method.
log = Bucket.logs_for('marcel').first
log.lines
More information about the logged requests can be found in the documentation for Log::Line.
Defined Under Namespace
Classes: Line
Instance Method Summary collapse
-
#initialize(log_object) ⇒ Log
constructor
:nodoc:.
-
#inspect ⇒ Object
:nodoc:.
-
#lines ⇒ Object
Returns the lines for the log.
- #path ⇒ Object
Constructor Details
#initialize(log_object) ⇒ Log
:nodoc:
95 96 97 |
# File 'lib/aws/s3/logging.rb', line 95 def initialize(log_object) #:nodoc: @log = log_object end |
Instance Method Details
#inspect ⇒ Object
:nodoc:
109 110 111 |
# File 'lib/aws/s3/logging.rb', line 109 def inspect #:nodoc: "#<%s:0x%s '%s'>" % [self.class.name, object_id, path] end |
#lines ⇒ Object
Returns the lines for the log. Each line is wrapped in a Log::Line.
100 101 102 |
# File 'lib/aws/s3/logging.rb', line 100 def lines log.value.map {|line| Line.new(line)} end |
#path ⇒ Object
105 106 107 |
# File 'lib/aws/s3/logging.rb', line 105 def path log.path end |