Output error logs #3743
-
Hi, Is there an example showing how to output error log to an external file for later investigation! I have a script that creates a large geometry in HFSS and sometimes crashes (not always). I wish to output the error logs to troubleshoot for this issue. Your suggestions will be appreciated. Regards |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi, the first approach that comes to mind is to ensure that you have enabled the log file. from pyaedt.generic.general_methods import settings
settings.enable_global_log_file = True Then a file should be generated in the repertory you selected during the installation of AEDT. |
Beta Was this translation helpful? Give feedback.
Hi, the first approach that comes to mind is to ensure that you have enabled the log file.
For example :
Then a file should be generated in the repertory you selected during the installation of AEDT.
In my case that is "C:\Users$USERNAME\AppData\Local\Temp\pyaedt_$USERNAME.log" where you have to fill your own username :)
Hope that helps you, let me know if that's not enough.