# LogException(Exception, Object)

> A variant of ILogHandler.LogFormat that logs an exception message.

## Definition

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

```csharp
void LogException(Exception exception, Object context)
```

### Parameters

**** (\[Exception]\(https\://learn.microsoft.com/dotnet/api/system.exception)): Runtime Exception.**** (\[Object]\(/engine/6000.7/script-reference/unityengine/object)): Object to which the message applies.
