old_contents: from totalimpactwebapp import default_settings
  import os, logging
  from flask import Flask
  
  # see http://docs.python.org/howto/logging-cookbook.html
  logger = logging.getLogger("tiwebapp")
  ch = logging.StreamHandler()
  formatter = logging.Formatter("%(asctime)s %(levelname)8s %(name)s - %(message)s")
  ch.setFormatter(formatter)
  logger.addHandler(ch)
  
  app = Flask(__name__)
  app.config.from_object(default_settings)
  
  from totalimpactwebapp import views
  
new_contents: from totalimpactwebapp import default_settings
  import os, logging, sys
  from flask import Flask
  
  # see http://wiki.pylonshq.com/display/pylonscookbook/Alternative+logging+configuration
  logging.basicConfig(
      stream=sys.stdout,
      level=logging.DEBUG,
      format='"%(asctime)s %(levelname)8s %(name)s - %(message)s"',
      datefmt='%H:%M:%S'
  )
  
  logger = logging.getLogger("tiwebapp")
  
  
  app = Flask(__name__)
  app.config.from_object(default_settings)
  
  from totalimpactwebapp import views
  
subject: simplify logging to stdout