title: How to properly format the python logging formatter?
body: <p>I try to format the way my Python logging formatter outputs strings. I wrote a minimalistic example to show the problem:</p>
  
  <pre><code>import logging
  from pathlib import Path
  
  # create auxiliary variables
  loggerName = Path(__file__).stem
  
  # create logging formatter
  logFormatter = logging.Formatter(fmt=' %(name)s :: %(levelname)s :: %(message)s')
  
  # create logger
  logger = logging.getLogger(loggerName)
  logger.setLevel(logging.DEBUG)
  
  # create console handler
  consoleHandler = logging.StreamHandler()
  consoleHandler.setLevel(logging.WARNING)
  consoleHandler.setFormatter(logFormatter)
  
  # Add console handler to logger
  logger.addHandler(consoleHandler)
  
  # Test
  logger.debug('debug message')
  logger.info('info message')
  logger.warning('warn message')
  logger.error('error message')
  logger.critical('critical message')
  </code></pre>
  
  <p>The script will give a an output without proper formatting: </p>
  
  <pre><code>logger :: WARNING :: warn message
  logger :: ERROR :: error message
  logger :: CRITICAL :: critical message
  </code></pre>
  
  <p>I would like to change the formatting to keep left side of my logging in order: </p>
  
  <pre><code>logger :: WARNING  :: warn message
  logger :: ERROR    :: error message
  logger :: CRITICAL :: critical message
  </code></pre>