title: how to manage multiple loggers in python flask-tornado application
body: <p>I'm building a python application with also a web interface, with Flask web framework.
  It runs on Flask internal server in debug/dev mode and in production mode it runs on tornado as wsgi container.
  This is how i've set up my logger:</p>
  
  <pre><code>log_formatter = logging.Formatter('%(asctime)s [%(levelname)s] %(message)s')
  
  file_handler = logging.handlers.RotatingFileHandler(LOG_FILE, maxBytes=5 * 1024 * 1024, backupCount=10)
  file_handler.setFormatter(log_formatter)
  
  console_handler = logging.StreamHandler(sys.stdout)
  console_handler.setFormatter(log_formatter)
  
  log = logging.getLogger('myAppLogger')
  log.addHandler(file_handler)
  log.addHandler(console_handler)
  </code></pre>
  
  <p>To add my logger to the Flask app i tried this:</p>
  
  <pre><code>app = Flask('system.web.server')
  app.logger_name = 'myAppLogger'
  </code></pre>
  
  <p>But the log still going to the Flask default log handler, and in addition, I didn't found how to customize the log handlers also for the Tornado web server.
  Any help is much appreciated, 
  thanks in advance</p>