Disabling/Enabling Logs

You can disable or enable logs of any type via C# scripting or via the custom editor. Here is an example:

using UnityEngine;
using CatLog;

public class CustomLogBehaviour : MonoBehaviour
{
    private void Start()
    {
        // Example: Disabling info logs
        Log.Settings.InfoEnabled = false;
        
        Log.Info("Example 2", "This log message should not show up in the console 
        or in any text file.");
        // Output: None
    }
}

Last updated