alpha-xone / xbbg

An intuitive Bloomberg API
https://xbbg.readthedocs.io/
Apache License 2.0
246 stars 52 forks source link

logging #16

Closed spyamine closed 4 years ago

spyamine commented 4 years ago

Hi,

How can we access the log functionality and put everything in a file.

I know that i can use , log='debug' but how can i access the details and log it to a file?

thanks

alpha-xone commented 4 years ago

Can try passing below arguments but not sure if it works. If not can add it in next update:

log_file='pre.log', types='file|stream'

spyamine commented 4 years ago

Hi,

It's not working when i add this in the bdh function. it goes as overrides..

alpha-xone commented 4 years ago

ok cool. will make this available next update

spyamine commented 4 years ago

Many thanks,

I have also add modification to your code to get intraday data on a range of dates. and removed the necessity to have exchange information. all the data we get from bloomberg is UTC. so i think no need to add complexity for the time.