# Example of how to set up logging on a bucket or resource. require File.join(File.dirname(__FILE__), '../../lib/s33r') include S33r # initialise the client from a config file # (see s3.yaml in examples directory) c = Client.init('/home/ell/.s33r') # Make a logging destination # This sets the required ACLs on a bucket to make it writeable by the # logging processes. c.enable_log_target('my-logging-bucket') # Set up logging for a bucket. c.enable_logging('es-test', 'my-logging-bucket') # Set up logging for a bucket with a custom log prefix. # (Default prefix is the name of the bucket which has logging enabled + "'") c.enable_logging('es-test2', 'my-logging-bucket', :prefix => 'special-logs-')