Logging and using pretext-cli as a library #470
StevenClontz
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
There is definitely a way to do this with the logging package (their documentation discusses best practices for this). I suspect I just have something set up wrong. I should have some time to experiment with this early next week. Also, this will close #418 when it gets closed. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Mostly for @oscarlevin - right now almost no one uses pretext-cli as a library, but the current refactor will make incorporating pretext as a dependency for other libraries much less painful.
One pain point that exists now: last time I used the Project class outside of calling the Click CLI, none of the logging.whatevers were printed to stdout. What's the right way to fix this? Right now I'm cheating:
But surely there's a more appropriate way to use the logging library to avoid print statements anywhere, but still output desired feedback to users even if they aren't using the CLI endpoint.
Beta Was this translation helpful? Give feedback.
All reactions