If I set the logging module to DEBUG with a command line parameter like this:
if (opt[\"log\"] == \"debug\"): logging.basicConfig(level=logging.DEBUG)
logging.getLogger().getEffectiveLevel()
logging.getLogger() without arguments gets the root level logger.
logging.getLogger()
http://docs.python.org/library/logging.html#logging.Logger.getEffectiveLevel