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

# logWarn

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

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

Helper function that logs messages at `Warn` 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>
