Sha256: 859b47981aa44b9578c1d0cc341256f8dd5885ef18e245fabfa173c95716f3f0

Contents?: true

Size: 706 Bytes

Versions: 3

Compression:

Stored size: 706 Bytes

Contents

# 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-')

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
s33r-0.4.1 examples/cli/logging_x.rb
s33r-0.4 examples/cli/logging_x.rb
s33r-0.4.2 examples/cli/logging_x.rb