If I set the logging module to DEBUG with a command line parameter like this:
if (opt[\"log\"] == \"debug\"): logging.basicConfig(level=logging.DEBUG)
Just
logging.getLogger().level == logging.DEBUG