# IsLogTypeAllowed(LogType)

> Check logging is enabled based on the LogType.

## Definition

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

```csharp
public bool IsLogTypeAllowed(LogType logType)
```

### Parameters

**** (\[LogType]\(/engine/6000.0/script-reference/unityengine/logtype)): The type of the log message.

### Returns

| Type                                                          | Description                                                                 |
| ------------------------------------------------------------- | --------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Retrun true in case logs of LogType will be logged otherwise returns false. |

### Remarks

Return true based on [Logger.filterLogType](/engine/6000.0/script-reference/unityengine/logger/filterlogtype.md) and [Logger.logEnabled](/engine/6000.0/script-reference/unityengine/logger/logenabled.md).
