We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
https://docs.python.org/3/library/logging.html
The text was updated successfully, but these errors were encountered:
If you create logger inside a module with the module name:
import logging logger = logging.getLogger(__name__)
then output statements as:
logger.info('setting up CGLS') logger.warning('xinit is deprecated')
we can then have users change the verbosity level they want, the start of the script needs something like:
import logging logging.basicConfig(level=logging.WARNING) cil_log_level = logging.getLogger('cil.optimisation.algorithms.CGLS') cil_log_level.setLevel(logging.DEBUG)
Or the module structure of the names means you can target all the loggers you want at each module level:
logging.basicConfig(level=logging.WARNING) cil_log_level = logging.getLogger('cil') cil_log_level.setLevel(logging.INFO)
Sorry, something went wrong.
No branches or pull requests
https://docs.python.org/3/library/logging.html
The text was updated successfully, but these errors were encountered: