> ## Documentation Index
> Fetch the complete documentation index at: https://docs.alumio.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Write log message

> Logs custom messages during execution.

export const FormField = ({property, label, required = false, diType, uiPatterns, children}) => {
  const patterns = Array.isArray(uiPatterns) ? uiPatterns : uiPatterns ? [uiPatterns] : [];
  return <div style={{
    margin: '1.5rem 0'
  }}>
      <div style={{
    display: 'flex',
    alignItems: 'baseline',
    flexWrap: 'wrap',
    gap: '0.5rem',
    marginBottom: '0.25rem'
  }}>
        <strong>{label}</strong>
        <span style={{
    fontSize: '0.7rem',
    fontWeight: 600,
    textTransform: 'uppercase',
    letterSpacing: '0.04em',
    color: required ? '#6241f5' : '#6b7280'
  }}>
          {required ? 'Required' : 'Optional'}
        </span>
      </div>

      <div>{children}</div>

      {diType || patterns.length > 0 ? <p style={{
    fontSize: '0.85rem',
    color: '#6b7280',
    marginBottom: 0
  }}>
          {diType ? <>
              See the <a href={`/references/${diType}`}>{diType}</a> reference.{' '}
            </> : null}
          {patterns.length > 0 ? <>
              Accepts a <a href={`/documentation/placeholders-and-patterns/patterns#${patterns[0]}`}>pattern</a>.
            </> : null}
        </p> : null}
    </div>;
};

Logs custom messages during execution. As a route runs, this step writes a message of your choosing to the log without changing the entity in any way. Use it to add extra information for troubleshooting, for example to confirm that a step was reached or to record a value as it passes through. The message can include placeholders, so you can drop in live data from the entity at the point the step runs.

This documentation describes: [Schema](/schemas/transformer/debug)

## Fields

<FormField property="logLevel" label="Log level">
  How important the message is in the log. Choose from Error, Warning, Notice, Info, or Debug. Defaults to Info. Pick a higher level such as Error or Warning when you want the message to stand out, or Debug for low-level detail you only need occasionally.
</FormField>

<FormField property="message" label="Log message" required>
  The text written to the log. You can mix in live entity data with placeholders such as `&{order.id}`, and use `&{@}` to write the whole entity at that point. See [Placeholders](/references/placeholders) for the full syntax.
</FormField>

## Sample data

This feature does not change the entity; it only writes a line to the log. The configuration below writes a message at Info level that includes the order id and customer email from the entity, for example `Processing order 1001 for sanne@example.com`.

| Field       | Value                                                |
| ----------- | ---------------------------------------------------- |
| Log level   | Info                                                 |
| Log message | `Processing order &{order.id} for &{customer.email}` |

```json Configuration theme={null}
{
  "prototype": "debug",
  "parameters": {
    "logLevel": "info",
    "message": "Processing order &{order.id} for &{customer.email}"
  }
}
```
