Recommended logging usage pattern:
import logging
logging.basicConfig(format='%(levelname)s: %(message)s', level=logging.INFO)
logging.debug('sys.path: %s', sys.path)
You can see such a pattern usage in various source files. Please consider using existing logging entries in that files instead of creating your own.