:doc:`IoT <../../iot>` / Client / get_logging_options

*******************
get_logging_options
*******************



.. py:method:: IoT.Client.get_logging_options()

  

  Gets the logging options.

   

  NOTE: use of this command is not recommended. Use ``GetV2LoggingOptions`` instead.

   

  Requires permission to access the `GetLoggingOptions <https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions>`__ action.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/iot-2015-05-28/GetLoggingOptions>`_  


  **Request Syntax**
  ::

    response = client.get_logging_options()
    
    
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'roleArn': 'string',
          'logLevel': 'DEBUG'|'INFO'|'ERROR'|'WARN'|'DISABLED'
      }
      
    **Response Structure**

    

    - *(dict) --* 

      The output from the GetLoggingOptions operation.

      
      

      - **roleArn** *(string) --* 

        The ARN of the IAM role that grants access.

        
      

      - **logLevel** *(string) --* 

        The logging level.

        
  
  **Exceptions**
  
  *   :py:class:`IoT.Client.exceptions.InternalException`

  
  *   :py:class:`IoT.Client.exceptions.InvalidRequestException`

  
  *   :py:class:`IoT.Client.exceptions.ServiceUnavailableException`

  