Skip to content

No log output when using Loguru together with opengate #1096

Description

@ustcfdm

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions