EconML icon indicating copy to clipboard operation
EconML copied to clipboard

Importing overrides logging.basicConfig

Open Ftrejo23 opened this issue 2 years ago • 1 comments

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!

Ftrejo23 avatar Feb 13 '24 20:02 Ftrejo23

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

kbattocchi avatar Feb 14 '24 15:02 kbattocchi