Hello! I am running multiple Opengate simulations and put them in a for loop. To record log information, I used loguru to in my code. For example, I write my log in to a file.
from loguru import logger
logger.add('run.log')
However, I noticed that my log information is disappeared after running first opengate simulation. I found that there is logger.remove() in opengate. It means that my log handler is removed by opengate. Is there any way to solve this problem? I want to write my own log to a file. Thanks!
Hello! I am running multiple Opengate simulations and put them in a for loop. To record log information, I used loguru to in my code. For example, I write my log in to a file.
However, I noticed that my log information is disappeared after running first opengate simulation. I found that there is
logger.remove()in opengate. It means that my log handler is removed by opengate. Is there any way to solve this problem? I want to write my own log to a file. Thanks!