Does not generate execution logs

Hello, when I run the bot from Windows Task Scheduler, no execution logs are generated, but when I run it from Visual, it does. The bot is programmed in c# visual studio 2022. Does anyone know what could be happening, thank you very much.

Hi good morning,
When you run your code from VS2022 you can actually see the logs, because VS2022 is automatically set up to display it using Console.WriteLine or another log writing method. Now, if your process is run by a windows task, you’ll have to use the robot cartes methods to write to the windows event viewer or the rpa center. (forensic or registerIteration)