Changing Log File Names

You can modify the file name for the log output by changing the LogFilename property in the Log.Settings.Files. Here's an example:

using UnityEngine;
using CatLog;

public class CustomLogBehaviour : MonoBehaviour
{
    private void Start()
    {
        // Change the filename for all logs
        Log.Settings.Files.LogFilename = "CustomLogs.txt";
        Log.Info("A message");
    }
}

Last updated