CWMS-Batch (the run env), cwms-python, and cwms-cli have made use of the logging that python offers.
Print does work to get stdout onto the page.
But I would consider agreeing on a repo-wide logging structure. When the time comes if cwms-cli, or other such libraries, were to use regi-python it would offer them the ability to control the log level. The idea that we would be running these in dev, test, and production environments. Where we might only want a critical log level for prod.
The idea that if a user or cwms-cli were to adopt these, they would be able to set the log level and regi-python would respect that.
Thoughts on changing print() to logging.info/etc and adding debug options?
Would like to discuss this on August 27th meeting.
CWMS-Batch (the run env), cwms-python, and cwms-cli have made use of the
loggingthat python offers.Print does work to get stdout onto the page.
But I would consider agreeing on a repo-wide logging structure. When the time comes if cwms-cli, or other such libraries, were to use regi-python it would offer them the ability to control the log level. The idea that we would be running these in dev, test, and production environments. Where we might only want a critical log level for prod.
The idea that if a user or cwms-cli were to adopt these, they would be able to set the log level and regi-python would respect that.
Thoughts on changing
print()tologging.info/etc and adding debug options?Would like to discuss this on August 27th meeting.