Why both, import logging and import logging.config are needed?
logging
is a package. Modules in packages aren't imported until you (or something in your program) imports them. You don't need both import logging
and import logging.config
though: just import logging.config
will make the name logging
available already.