Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Controls for console print verbosity across imageAI #305

Open
auphofBSF opened this issue Aug 21, 2019 · 2 comments
Open

Controls for console print verbosity across imageAI #305

auphofBSF opened this issue Aug 21, 2019 · 2 comments

Comments

@auphofBSF
Copy link
Contributor

@auphofBSF auphofBSF commented Aug 21, 2019

A more consistent and multi-functional global level of verbosity control,
suggest an enhancement that will see print(...) in project be converted to using the python logging. module

import logging
#Then instead of print() use either
logging.info(......)
#or
logging.debug(.....)
#or
logging.warning(....)
#or
#logging.error()

In that way verbosity can be globally configured for each application usage of imageai and granularly adjusted for each class with a diverse set of logging options up to the final user.

Logging can be directed to console,files,db or 3rd party monitoring apps and be configured for style (timestamps,source, etc)

Look forward to other suggestion and possibly putting this on the enhancements list

Originally posted by @auphofBSF in #302 (comment)

@rola93
Copy link
Contributor

@rola93 rola93 commented Aug 28, 2019

would love to hear @OlafenwaMoses thougths on this. Looks like a good improvement.

Should consider that keras output may not be that easy to redirect to logging

@OlafenwaMoses
Copy link
Owner

@OlafenwaMoses OlafenwaMoses commented Aug 31, 2019

@rola93 @auphofBSF I have commented on this before that using logging is something that is worth considering, since it does allow more functionalities than the traditional print. I will still review the pipeline of implementing this and let you all know we should go ahead with it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.