title: Flask not logging with logger provided by library?
body: <p>I have the following code: </p>
  
  <pre><code>import logging
  import pprint
  
  from flask import Flask, request, url_for
  from flask.ext.werobot import WeRoBot
  
  app = Flask(__name__)
  app.debug = True
  
  robot = WeRoBot(token='banana', enable_session=False)
  logger = logging.getLogger("WeRoBot")
  logger.setLevel(logging.ERROR)
  
  @robot.handler
  def reply(message):
    logger.error("TESTING")
    return "id:%s\ntarget:%s\nsource:%s\ncontent:%s" % (
      message.id, message.target, message.source, message.content)
  
  robot.init_app(app, endpoint='werobot', rule='/wechat')
  
  @app.route('/')
  def index():
    return 'WeRoBot will handle at %s' % url_for('werobot')
  
  
  if __name__ == '__main__':
    app.run(host="0.0.0.0", port=80)
    app.logger.addHandler(logger)
    app.logger.setLevel(logging.DEBUG)
  </code></pre>
  
  <p>And I am trying to use this logger provided by my library (<a href="https://github.com/binss/werobot-bin/blob/master/logger.py" rel="nofollow">https://github.com/binss/werobot-bin/blob/master/logger.py</a>)</p>
  
  <p>Right now all I am seeing is this in my flask console: </p>
  
  <pre><code>103.7.30.69 - - [22/May/2016 22:26:43] "POST /wechat?signature=147865ba8f78a860468dfb9276a1be6c1d735a06&amp;timestamp=1463956003&amp;nonce=784584663 HTTP/1.0" 200 -
  </code></pre>
  
  <p>Any ideas why the logger is not outputting anything? </p>
  
  <h2>EDIT:</h2>
  
  <p>When I added <code>logger.error</code> in my code I am seeing this instead:</p>
  
  <pre><code>No handlers could be found for logger "WeRoBot"
  103.7.30.69 - - [22/May/2016 22:33:48] "POST /wechat?signature=690728c359997933b6fe879a29b3e1a3f4bbd3a5&amp;timestamp=1463956428&amp;nonce=1767972375 HTTP/1.0" 200 -
  </code></pre>