Menu
AWS Greengrass
API Reference

CreateLoggerDefinition

Creates a logger definition. You may optionally provide the initial version of the logger definition or use CreateLoggerDefinitionVersion at a later time.

URI: /greengrass/definition/loggers

Operation: POST

Produces: application/json

Parameters:

  • CreateLoggerDefinitionRequestBody

    where used: body

    required: true

    schema:

    properties:

    • Name:

      The name of the logger definition.

      type: string

    • InitialVersion:
      LoggerDefinitionVersion

      type: object

      Information about a logger definition version.

      properties:

      • Loggers

        List of loggers.

        type: array

        items:
        Logger

        type: object

        Information about a Logger.

        required: Id|Type|Component|Level

        properties:

        • Id:

          Element Id for this entry in the list.

          type: string

        • Type:
          LoggerType:

          type: string

          enum: FileSystem|AWSCloudWatch

        • Component:
          LoggerComponent:

          type: string

          enum: GreengrassSystem|Lambda

        • Level:
          LoggerLevel:

          type: string

          enum: DEBUG|INFO|WARN|ERROR|FATAL

        • Space:

          Amount of hardware space, in KB, to use if the local file system is used for logging purposes.

          type: string

    Example:

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

    The client token used to request idempotent operations.

    where used: header

    required: false

    type: string

Responses: