---
schema_version: "1"
id: 976e40a190e2cd0a40a3297fe0bddfbb1ef5b1b26b93d2e216d62b29bcb9fcfa
title: logError
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/2.11/dw-core-functions-logerror.md
canonical_url: https://docs.mulesoft.com/dataweave/2.11/dw-core-functions-logerror
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 76d7843d394dfe190f3aecd04fdca539c8b8b05c93e9c85d0ff977b7bc00085a
description: MuleSoft Documentation Site
release: "2.11"
latest: false
---
---
product: DataWeave
version: 2.11
---

# logError

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

## logError<T>(prefix: String = "", value: T): T

Helper function that logs messages at `Error` level.

_Introduced in DataWeave version 2.10.0._

### Parameters

<table><colgroup><col> <col></colgroup><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><p><code>prefix</code></p></td><td><p>An optional string that typically describes the log.</p></td></tr><tr><td><p><code>value</code></p></td><td><p>The value to log.</p></td></tr></tbody></table>
