# LogWarningFormat

> Logs a formatted warning message to the Unity Console.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

## LogWarningFormat(string, Object\[])

Logs a formatted warning message to the Unity Console.

```csharp
public static void LogWarningFormat(string format, params object[] args)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): A composite format string.**** (\[Object\[]]\(https\://learn.microsoft.com/dotnet/api/system.object)): Format arguments.

### Remarks

For formatting details, see the MSDN documentation on Composite Formatting. Rich text markup can be used to add emphasis. See the manual page about rich text for details of the different markup tags available.

Additional Resources: [Debug.unityLogger](/engine/6000.0/script-reference/unityengine/debug/unitylogger.md), [ILogger](/engine/6000.0/script-reference/unityengine/ilogger.md), [Logger.LogWarning](/engine/6000.0/script-reference/unityengine/logger/logwarning.md).

## LogWarningFormat(Object, string, Object\[])

Logs a formatted warning message to the Unity Console.

```csharp
public static void LogWarningFormat(Object context, string format, params object[] args)
```

### Parameters

**** (\[Object]\(/engine/6000.0/script-reference/unityengine/object)): Object to which the message applies.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): A composite format string.**** (\[Object\[]]\(https\://learn.microsoft.com/dotnet/api/system.object)): Format arguments.

### Remarks

For formatting details, see the MSDN documentation on Composite Formatting. Rich text markup can be used to add emphasis. See the manual page about rich text for details of the different markup tags available.

Additional Resources: [Debug.unityLogger](/engine/6000.0/script-reference/unityengine/debug/unitylogger.md), [ILogger](/engine/6000.0/script-reference/unityengine/ilogger.md), [Logger.LogWarning](/engine/6000.0/script-reference/unityengine/logger/logwarning.md).
