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

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