### Describe the bug When accessing the log file ofstreams in the log function, the program segfaults. I don't know why. It doesn't make any sense. ### Logs _No response_ ### A few questions - [x] Would you be willing/able to fix this bug yourself?