SimFin / simfin

Simple financial data for Python
https://simfin.com/
Other
303 stars 40 forks source link

Advanced logging #19

Open taglia opened 1 year ago

taglia commented 1 year ago

Feature Suggestion

Using the logging module, rather than directly printing to stdout and stderr.

Description

I understand this would add an additional dependency, but I think the logging module is fairly standard and accepted. I have an issue handling SimFin output in my applications, since I already use stdout as one of my logging streams.

Code

I can create a PR if there is interest, there are only a few print statements.

Example

It would be a matter of replacing all calls to print, with corresponding calls to logging.

Examples: