{"action":"closed","issue":{"url":"https://api.github.com/repos/pallets/flask/issues/2884","repository_url":"https://api.github.com/repos/pallets/flask","labels_url":"https://api.github.com/repos/pallets/flask/issues/2884/labels{/name}","comments_url":"https://api.github.com/repos/pallets/flask/issues/2884/comments","events_url":"https://api.github.com/repos/pallets/flask/issues/2884/events","html_url":"https://github.com/pallets/flask/issues/2884","id":349741861,"node_id":"MDU6SXNzdWUzNDk3NDE4NjE=","number":2884,"title":"app.logger can't work","user":{"login":"BeanWei","id":33516660,"node_id":"MDQ6VXNlcjMzNTE2NjYw","avatar_url":"https://avatars2.githubusercontent.com/u/33516660?v=4","gravatar_id":"","url":"https://api.github.com/users/BeanWei","html_url":"https://github.com/BeanWei","followers_url":"https://api.github.com/users/BeanWei/followers","following_url":"https://api.github.com/users/BeanWei/following{/other_user}","gists_url":"https://api.github.com/users/BeanWei/gists{/gist_id}","starred_url":"https://api.github.com/users/BeanWei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BeanWei/subscriptions","organizations_url":"https://api.github.com/users/BeanWei/orgs","repos_url":"https://api.github.com/users/BeanWei/repos","events_url":"https://api.github.com/users/BeanWei/events{/privacy}","received_events_url":"https://api.github.com/users/BeanWei/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-08-11T15:26:00Z","updated_at":"2018-08-12T03:37:25Z","closed_at":"2018-08-12T03:37:25Z","author_association":"NONE","body":"the vscode error  info:\r\n `\"message\": \"E1101:Method 'logger' has no 'info' member\",`\r\n`\"message\": \"E1101:Method 'logger' has no 'addHandler' member\",`\r\n\r\nbut I can still run it `python test.py`, I don't know why and i get nothing in app.log.\r\n\r\n***test.py***\r\n```python\r\nfrom flask import Flask\r\n\r\nimport logging\r\nfrom logging.handlers import RotatingFileHandler\r\n\r\napp = Flask(__name__)\r\n\r\nhand_log = RotatingFileHandler('app.log')\r\nhand_log.setFormatter(logging.Formatter(\r\n    '[%(asctime)s]%(levelname)s: %(message)s'))\r\nhand_log.setLevel(logging.INFO)\r\napp.logger.addHandler(hand_log)\r\n\r\n@app.route('/')\r\ndef foo():\r\n    app.logger.info('welcome')\r\n    return \"hello\"\r\n\r\napp.run(debug=True)\r\n```\r\n\r\n### Environment\r\n\r\n* Python version: 3.6.2\r\n* Flask version: 1.0.2\r\n"}}
{"actor":{"display_login":"greyli"}}