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

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