Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Importing overrides logging.basicConfig #851

Open
Ftrejo23 opened this issue Feb 13, 2024 · 1 comment
Open

Importing overrides logging.basicConfig #851

Ftrejo23 opened this issue Feb 13, 2024 · 1 comment

Comments

@Ftrejo23
Copy link

Hello there I am setting up my main script and narrowed the issue down to this import below.

from econml.dml import NonParamDML

I looked in the documentation and couldn't find anything related to logging. This import overrides my logging basicConfig

logging.basicConfig(
            level=logging.INFO,
            format='%(asctime)s %(levelname)s: %(message)s',
            datefmt='%Y-%m-%d %H:%M:%S',
            handlers=[
                logging.FileHandler(log_file, mode='a+'),
                logging.StreamHandler(sys.stdout)
            ],
            force=True
        )

Any help or guidance is much appreciated!

@kbattocchi
Copy link
Collaborator

We don't use the logging library internally, so I suspect this is due to some transitive dependency.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants