Menu
AWS Greengrass
API Reference

CreateLoggerDefinitionVersion

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

URI: /greengrass/definition/loggers/LoggerDefinitionId/versions

Operation: POST

Produces: application/json

Parameters:

  • LoggerDefinitionId

    The id of the logger definition.

    where used: path

    required: true

    type: string

  • CreateLoggerDefinitionVersionRequestBody

    Information needed to create a logger definition version.

    where used: body

    required: true

    schema:

    LoggerDefinitionVersion

    type: object

    Information about a logger definition version.

    properties:

    • Loggers

      A list of loggers.

      type: array

      items:

      The logger definition.

      Logger

      type: object

      Information about a logger

      required: Id|Type|Component|Level

      properties:

      • Id:

        The id of the logger.

        type: string

      • Type:

        The type of log output which will be used.

        LoggerType:

        type: string

        enum: FileSystem|AWSCloudWatch

      • Component:

        The component that will be subject to logging.

        LoggerComponent:

        type: string

        enum: GreengrassSystem|Lambda

      • Level:

        The level of the logging.

        LoggerLevel:

        type: string

        enum: DEBUG|INFO|WARN|ERROR|FATAL

      • Space:

        The amount of memory to use, in KB, if the local file system is used for logging.

        type: integer

    Example:

    Copy
    { "Loggers": [ { "Id": "string", "Type": "FileSystem|AWSCloudWatch", "Component": "GreengrassSystem|Lambda", "Level": "DEBUG|INFO|WARN|ERROR|FATAL", "Space": 0 } ] }
  • X-Amzn-Client-Token

    A client token used to correlate requests and responses.

    where used: header

    required: false

    type: string

Responses: