Log errors to file

Is it not possible to log compiler errors to a file? I see that upon startup, it will log errors to C:\Users\user\Documents\NinjaTrader 8\log\log.20260418.00000.en.txt but thats only during startup. I cant get my programs to get the errors. I’ve even tried to get my programs to read the editor errors optically but it cant find the window. I just need my errors logged so i can automatically have them fixed. thanks