Hi, is there an equivalent for this for the lseg.data workspace?
Hello @abhinit.kumar
Please refer to section 2.2.2 - Enable logging of the Eikon Data API and Data Library - Troubleshooting article.
The https://developers.lseg.com/en/api-catalog/lseg-data-platform/lseg-data-library-for-python use similar lseg-data.config.json configuration file as the Data library and you can enable the log by setting the console and/or file log as follows:
{ "logs": { "level": "debug", "transports": { "console": { "enabled": true }, "file": { "enabled": true, "name": "lseg-data-lib.log" } } }, "sessions": { ... } }
@abhinit.kumar
You can also enable the debug log via the code by running the following code before opening the session.
config = ld.get_config() config.set_param("logs.transports.file.enabled", True) config.set_param("logs.transports.file.name", "lseg-data-lib.log") config.set_param("logs.level", "debug") ld.open_session()
Then, the lseg-data-lib.log file will be created.