{"action":"opened","issue":{"url":"https://api.github.com/repos/r0x0r/pywebview/issues/295","repository_url":"https://api.github.com/repos/r0x0r/pywebview","labels_url":"https://api.github.com/repos/r0x0r/pywebview/issues/295/labels{/name}","comments_url":"https://api.github.com/repos/r0x0r/pywebview/issues/295/comments","events_url":"https://api.github.com/repos/r0x0r/pywebview/issues/295/events","html_url":"https://github.com/r0x0r/pywebview/issues/295","id":390208366,"node_id":"MDU6SXNzdWUzOTAyMDgzNjY=","number":295,"title":"Logging not working","user":{"login":"AnselmC","id":22545864,"node_id":"MDQ6VXNlcjIyNTQ1ODY0","avatar_url":"https://avatars0.githubusercontent.com/u/22545864?v=4","gravatar_id":"","url":"https://api.github.com/users/AnselmC","html_url":"https://github.com/AnselmC","followers_url":"https://api.github.com/users/AnselmC/followers","following_url":"https://api.github.com/users/AnselmC/following{/other_user}","gists_url":"https://api.github.com/users/AnselmC/gists{/gist_id}","starred_url":"https://api.github.com/users/AnselmC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AnselmC/subscriptions","organizations_url":"https://api.github.com/users/AnselmC/orgs","repos_url":"https://api.github.com/users/AnselmC/repos","events_url":"https://api.github.com/users/AnselmC/events{/privacy}","received_events_url":"https://api.github.com/users/AnselmC/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-12T12:40:27Z","updated_at":"2018-12-12T12:40:27Z","closed_at":null,"author_association":"NONE","body":"### Specification\r\n- Platform: macOS\r\n- Version: Python 3.6.7\r\n\r\n### Description\r\nA heads up: I'm not sure whether this is something that is specific to pywebview but I couldn't find anything on my problem in general.\r\n\r\nWhen trying to log to a file, the logs are printed in the console rather than written to the file. This only happens when I create a new window with pywebview. Here an example code snippet:\r\n```\r\nimport logging\r\nimport webview\r\n\r\nlogging.basicConfig(\r\n    filename='app.log',\r\n    filemode='w',\r\n    format='%(name)s - %(levelname)s - %(message)s')\r\nlogging.getLogger().setLevel(logging.INFO)\r\n\r\nclass Foo:\r\n    def __init__(self):\r\n        self.logger = logging.getLogger(__name__)\r\n        self.logger.info('Something informative')\r\n        self.doSomething()\r\n\r\n...\r\n\r\nif __name__ == '__main__':\r\n    foo = Foo()\r\n    webview.create_window('example.com')\r\n```\r\n\r\nAny idea why this might be?\r\n\r\nThanks!"}}
{"actor":{"display_login":"AnselmC"}}