πŸ’¬Log

Colorful variant of debug logger

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

public enum CustomLogMessageType {
    System = 0,
    Debug = 1,
    Game = 2,
    Error = 3
}
here you can setup Log colors in script

To push custom log messages use this methods:

/// <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);

Last updated