You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
print(msg, file=sys.stderr) would become logging.error(msg)
print(msg) would become logging.info(msg)
The text was updated successfully, but these errors were encountered:
Feature Suggestion
Using the
logging
module, rather than directly printing tostdout
andstderr
.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 usestdout
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 tologging
.Examples:
print(msg, file=sys.stderr)
would becomelogging.error(msg)
print(msg)
would becomelogging.info(msg)
The text was updated successfully, but these errors were encountered: