how do you quickly clear the Editor Log file?
thanks
how do you quickly clear the Editor Log file?
thanks
I was able to do this by opening it, deleting the contents, and then saving it over the original. But, I’m not sure if that’s the correct way to do it.
Deleting the contents does not stop the log file from growing, as Unity zeros out the memory and appends internally. So if you use the above approach to clear a 4 Mb .log file, it’d go to zero bytes, and then right back to 4 Mb as soon as Unity appended the next log. If you have access to your Unity C# code, you can call the UnityEngine.Debug.ClearDeveloperConsole();
method.
This does not work.
This works.
I think there should be a command or some other way to do this from scripts, no?
You could delete the editor.log file, but you should exit unity first, since it opens in exclusive way. The file is in %USERPROFILE%\AppData\Local\Unity\Editor\Editor.log