How do I change the logging level for ibkr’s ibapi?

  Kiến thức lập trình

I am trying to get more detailed logging to the console. I have done it before and seen details like

4948305328 connState: None -> 0
Connecting to 127.0.0.1:4001 w/ id:1
4948305328 connState: 0 -> 1

I can’t seem to get it working now. I have even tried changing the client.py source file like this:

logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG) # << new line

and I still can’t get it to log more details.

Theme wordpress giá rẻ Theme wordpress giá rẻ Thiết kế website

LEAVE A COMMENT