:doc:`Greengrass <../../greengrass>` / Client / create_logger_definition_version

********************************
create_logger_definition_version
********************************



.. py:method:: Greengrass.Client.create_logger_definition_version(**kwargs)

  Creates a version of a logger definition that has already been defined.

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/CreateLoggerDefinitionVersion>`_  


  **Request Syntax**
  ::

    response = client.create_logger_definition_version(
        AmznClientToken='string',
        LoggerDefinitionId='string',
        Loggers=[
            {
                'Component': 'GreengrassSystem'|'Lambda',
                'Id': 'string',
                'Level': 'DEBUG'|'INFO'|'WARN'|'ERROR'|'FATAL',
                'Space': 123,
                'Type': 'FileSystem'|'AWSCloudWatch'
            },
        ]
    )
    
  :type AmznClientToken: string
  :param AmznClientToken: A client token used to correlate requests and responses.

  
  :type LoggerDefinitionId: string
  :param LoggerDefinitionId: **[REQUIRED]** The ID of the logger definition.

  
  :type Loggers: list
  :param Loggers: A list of loggers.

  
    - *(dict) --* Information about a logger

    
      - **Component** *(string) --* **[REQUIRED]** The component that will be subject to logging.

      
      - **Id** *(string) --* **[REQUIRED]** A descriptive or arbitrary ID for the logger. This value must be unique within the logger definition version. Max length is 128 characters with pattern ''[a-zA-Z0-9:_-]+''.

      
      - **Level** *(string) --* **[REQUIRED]** The level of the logs.

      
      - **Space** *(integer) --* The amount of file space, in KB, to use if the local file system is used for logging purposes.

      
      - **Type** *(string) --* **[REQUIRED]** The type of log output which will be used.

      
    

  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'Arn': 'string',
          'CreationTimestamp': 'string',
          'Id': 'string',
          'Version': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **Arn** *(string) --* The ARN of the version.
      

      - **CreationTimestamp** *(string) --* The time, in milliseconds since the epoch, when the version was created.
      

      - **Id** *(string) --* The ID of the parent definition that the version is associated with.
      

      - **Version** *(string) --* The ID of the version.
  
  **Exceptions**
  
  *   :py:class:`Greengrass.Client.exceptions.BadRequestException`

  