setServerLogLevel: Enable API Logging Via TWS

Description Usage Arguments Details Value Note Author(s) References

Description

Set level of API logging to be done by TWS.

Usage

1
setServerLogLevel(conn, logLevel = 2)

Arguments

conn

a valid twsConnection

logLevel

an integer from 1 to 5

Details

Calling this function will set the logging level for the current connection according to the following table:

  1. 1:SYSTEM (least detail)

  2. 2:ERROR (default)

  3. 3:WARNING

  4. 4:INFORMATION

  5. 5:DETAIL (most detail)

See TWS documentation for further details.

Value

This function is called for its side-effects.

Note

The online documentation warns of performance overhead when setting logLevel=5.

Author(s)

Jeffrey A. Ryan

References

TWS API Logging http://www.interactivebrokers.com/php/apiUsersGuide/apiguide/api/api_logging.htm#XREF_63640_API_Logging


hgodinez/ibrokers documentation built on May 17, 2019, 3:57 p.m.