AWS Golang SDK设置调试级别

I'm trying to debug the S3 upload session in Go code which I am initiating like this

sess := session.Must(session.NewSession(&aws.Config{
        Endpoint: aws.String(os.Getenv("AWS_LOCAL_S3_ENDPOINT")),
        Region:   aws.String(os.Getenv("AWS_REGION")),
        // LogLevel: aws.LogDebug,
    })) 

Now what i have problem with is settithe LogLevel param. Can't figure this out. I am very much beginner in golang.

The idea is to debug the S3 upload process. it is complaining that bucket is not available, but it is. AWS_LOCAL_S3_ENDPOINT is the localstack endpoint for mocked S3

AWS Session Config doc link here