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

*******************
set_logging_options
*******************



.. py:method:: IoT.Client.set_logging_options(**kwargs)

  

  Sets the logging options.

   

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

   

  Requires permission to access the `SetLoggingOptions <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/SetLoggingOptions>`_  


  **Request Syntax**
  ::

    response = client.set_logging_options(
        loggingOptionsPayload={
            'roleArn': 'string',
            'logLevel': 'DEBUG'|'INFO'|'ERROR'|'WARN'|'DISABLED'
        }
    )
    
  :type loggingOptionsPayload: dict
  :param loggingOptionsPayload: **[REQUIRED]** 

    The logging options payload.

    

  
    - **roleArn** *(string) --* **[REQUIRED]** 

      The ARN of the IAM role that grants access.

      

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

      The log level.

      

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

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

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

  