# LogError

> A variant of ILogger.Log that logs an error message.

## Definition

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

## LogError(string, Object)

A variant of ILogger.Log that logs an error message.

```csharp
void LogError(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.LogError](/engine/6000.0/script-reference/unityengine/logger/logerror.md).

## LogError(string, Object, Object)

A variant of ILogger.Log that logs an error message.

```csharp
void LogError(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.0/script-reference/unityengine/object)):&#x20;

### Remarks

Additional Resources: [Logger.LogError](/engine/6000.0/script-reference/unityengine/logger/logerror.md).
