# IsLogTypeAllowed(LogType)

> Check logging is enabled based on the LogType.

## Definition

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

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

### Parameters

**** (\[LogType]\(/engine/6000.5/script-reference/unityengine/logtype)):&#x20;

### 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

Additional Resources: [Logger.IsLogTypeAllowed](/engine/6000.5/script-reference/unityengine/logger/islogtypeallowed.md).
