---
schema_version: "1"
id: 7809e09f96d9684da32f2dd87cb771b5c8a12072fc8e13503bc04cdfbaa36b69
title: logError
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/latest/dw-core-functions-logerror.md
canonical_url: https://docs.mulesoft.com/dataweave/latest/dw-core-functions-logerror
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 0c4f4f71973ca236b8c1346203c513bd1f3ac8b968173c47f9de85069569dc6e
description: MuleSoft Documentation Site
release: "2.13"
latest: true
---
---
product: DataWeave
version: 2.13
is-latest-version: true
---

# 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>
