title: AWS API Gateway Custom Authorizer log
body: <p>How do get logging from custom authorizer lambda function in API Gateway?
  I do not want to enable logging for API. I need logging from authorizer lambda function. I use a python lambda function and have prints in the code. I want to view the prints in <strong>Cloud Watch</strong> logs. But logs are not seen in cloud watch. I do not get errors either. What am I missing?<br>
  Lambda has execution role <strong>role/service-role/MyLambdaRole</strong>. This role has the policy to write to cloud watch.</p>
  
  <pre>
  {
      "Version": "2012-10-17",
      "Statement": [
          {
              "Effect": "Allow",
              "Action": "logs:CreateLogGroup",
              "Resource": "arn:aws:logs:us-east-1:123456:*"
          },
          {
              "Effect": "Allow",
              "Action": [
                  "logs:CreateLogStream",
                  "logs:PutLogEvents"
              ],
              "Resource": [
                  "arn:aws:logs:us-east-1:123456:log-group:MyCustomAuthorizer:*"
              ]
          }
      ]
  }
  </pre>
  
  <p>I also tested by adding CloudWatchLogsFullAccess policy to <strong>role/service-role/MyLambdaRole</strong> role.</p>
  
  <pre>
  {
    "Version": "2012-10-17",
    "Statement": [
      {
        "Action": [
          "logs:*"
        ],
        "Effect": "Allow",
        "Resource": "*"
      }
    ]
  }
  </pre>