# Log

It's wrapper of unity Debug.debugger.\
It has following message types:

```csharp
public enum CustomLogMessageType {
    System = 0,
    Debug = 1,
    Game = 2,
    Error = 3
}
```

<figure><img src="https://1613353771-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fygjewtla1W7kzTTIpGWq%2Fuploads%2FZUkBcUbqDlftpn59EIV2%2Fimage.png?alt=media&#x26;token=434d77d2-25f7-4482-98c4-0336fcb7e030" alt=""><figcaption><p>here you can setup Log colors in script</p></figcaption></figure>

To push custom log messages use this methods:

```csharp
/// <summary>
/// Push message
/// </summary>
/// <param name="type">Log type. Each type has it's own color</param>
/// <param name="context">Object that belongs to this message (you can select obj by clicking on message)</param>
public static void Push(string text, CustomLogMessageType type, 
                        UnityEngine.Object context = null);

/// <summary>
/// Push Debug message
/// </summary>
/// <param name="context">Object that belongs to this message (you can select obj by clicking on message)</param>
public static void Push(string text, UnityEngine.Object context = null);
```
