# LogWarning

> A variant of Logger.Log that logs an warning message.

## Definition

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

## LogWarning(string, Object)

A variant of Logger.Log that logs an warning message.

```csharp
void LogWarning(string tag, object message)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): **** (\[Object]\(https\://learn.microsoft.com/dotnet/api/system.object)):&#x20;

### Remarks

Additional Resources: [Logger.LogWarning](/engine/6000.7/script-reference/unityengine/logger/logwarning.md).

## LogWarning(string, Object, Object)

A variant of Logger.Log that logs an warning message.

```csharp
void LogWarning(string tag, object message, Object context)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): **** (\[Object]\(https\://learn.microsoft.com/dotnet/api/system.object)): **** (\[Object]\(/engine/6000.7/script-reference/unityengine/object)):&#x20;

### Remarks

Additional Resources: [Logger.LogWarning](/engine/6000.7/script-reference/unityengine/logger/logwarning.md).
