Shopware icon

Shopware

Shopware

Actions778

Log Entry → Create Log Entry

AI-generated

Overview

This node creates a log entry in the Shopware system. It is useful for recording events, errors, or informational messages within the Shopware platform, helping with monitoring and debugging. For example, it can be used to log custom messages with different severity levels, channels, and additional context or metadata.

Use Case Examples

  1. Creating a log entry with a specific message and level to track an error.
  2. Logging contextual information about a process or event in Shopware for audit purposes.

Properties

Name Meaning
Response Data format for the response, either basic or detailed.
Id The unique identifier for the log entry.
Message The log message content.
Level The severity level of the log entry, represented as a number.
Channel The channel or category of the log entry.
Context Additional context for the log entry in JSON format.
Extra Extra metadata for the log entry in JSON format.
Created At Timestamp for when the log entry was created.
Updated At Timestamp for when the log entry was last updated.
Request Options Settings for request behavior such as batching, SSL validation, proxy, and timeout.

Output

JSON

  • id - The unique identifier of the created log entry.
  • message - The message content of the log entry.
  • level - The severity level of the log entry.
  • channel - The channel or category of the log entry.
  • context - Additional context data associated with the log entry.
  • extra - Extra metadata associated with the log entry.
  • createdAt - Timestamp when the log entry was created.
  • updatedAt - Timestamp when the log entry was last updated.

Dependencies

  • An API key credential for Shopware Admin API

Troubleshooting

  • Ensure the 'Id' field is provided as it is required; missing it will cause errors.
  • Verify that JSON fields like 'Context' and 'Extra' are valid JSON strings to avoid parsing errors.
  • Check network settings such as proxy and SSL options if requests fail due to connectivity or certificate issues.
  • Timeout errors can occur if the server does not respond within the specified time; adjust the timeout setting accordingly.

Discussion