# LogFormat

> Logs a formatted message.

## Definition

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

## LogFormat(LogType, string, Object\[])

Logs a formatted message.

```csharp
public void LogFormat(LogType logType, string format, params object[] args)
```

### Parameters

**** (\[LogType]\(/engine/6000.0/script-reference/unityengine/logtype)): The type of the log message.**** (\[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.

## LogFormat(LogType, Object, string, Object\[])

Logs a formatted message.

```csharp
public void LogFormat(LogType logType, Object context, string format, params object[] args)
```

### Parameters

**** (\[LogType]\(/engine/6000.0/script-reference/unityengine/logtype)): The type of the log message.**** (\[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.
