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

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