lib/s3/right_s3.rb
# Enables S3 server access logging on a bucket.  The target bucket must have been properly configured to receive server
# access logs.
#  Params:
#   :targetbucket - either the target bucket object or the name of the target bucket
#   :targetprefix - the prefix under which all logs should be stored
#
#  bucket.enable_logging(:targetbucket=>"mylogbucket", :targetprefix=>"loggylogs/")
#    => true
Enables S3 server access logging on a bucket.  The target bucket must have been properly configured to receive server
access logs.
Params:
:targetbucket - either the target bucket object or the name of the target bucket
:targetprefix - the prefix under which all logs should be stored


Enables S3 server access logging on a bucket . The target bucket must have been properly configured to receive server access logs . Params : : targetbucket - either the target bucket object or the name of the target bucket : targetprefix - the prefix under which all logs should be stored
def enable_logging(params)
        AwsUtils.mandatory_arguments([:targetbucket, :targetprefix], params)
        AwsUtils.allow_only([:targetbucket, :targetprefix], params)
        xmldoc = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><BucketLoggingStatus xmlns=\"http://doc.s3.amazonaws.com/2006-03-01\"><LoggingEnabled><TargetBucket>#{params[:targetbucket]}</TargetBucket><TargetPrefix>#{params[:targetprefix]}</TargetPrefix></LoggingEnabled></BucketLoggingStatus>"
        @s3.interface.put_logging(:bucket => @name, :xmldoc => xmldoc)
      end
def enable_logging ( params ) AwsUtils . mandatory_arguments ( [ :targetbucket , :targetprefix ] , params ) AwsUtils . allow_only ( [ :targetbucket , :targetprefix ] , params ) xmldoc = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><BucketLoggingStatus xmlns=\"http://doc.s3.amazonaws.com/2006-03-01\"><LoggingEnabled><TargetBucket>#{params[:targetbucket]}</TargetBucket><TargetPrefix>#{params[:targetprefix]}</TargetPrefix></LoggingEnabled></BucketLoggingStatus>" @s3 . interface . put_logging ( :bucket => @name , :xmldoc => xmldoc ) end
Enables S3 server access logging on a bucket.
Enables S3 server access logging on a bucket .
params
<not_specific>