ib-api-reloaded / ib_async

Python sync/async framework for Interactive Brokers API (replaces ib_insync)
BSD 2-Clause "Simplified" License
223 stars 37 forks source link

logToFile in util.py does not work when using multiple file loggers #24

Open danyal opened 3 weeks ago

danyal commented 3 weeks ago

When using multiple file loggers, ib_insync outputs to the wrong file. I believe this is because logToFile is calling getLogger without passing a unique arg. Changing this line to logger = logging.getLogger('ib_insync') fixed the issue.