github.com/aavshr/aws-sdk-go@v1.41.3/example/service/s3/loggingUploadObjectReadBehavior/README.md (about) 1 # Example 2 3 This example shows how you could wrap the reader of an file being 4 uploaded to Amazon S3 with a logger that will log the usage of the 5 reader, and print call stacks when the reader's Read, Seek, or ReadAt 6 methods encounter an error. 7 8 # Usage 9 10 This bucket uses the bucket name, key, and local file name passed to upload the local file to S3 as the key into the bucket. 11 12 ```sh 13 AWS_REGION=us-west-2 AWS_PROFILE=default go run . "mybucket" "10MB.file" ./10MB.file 14 ```