{"action":"created","issue":{"url":"https://api.github.com/repos/eisensheng/pytest-catchlog/issues/7","labels_url":"https://api.github.com/repos/eisensheng/pytest-catchlog/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/eisensheng/pytest-catchlog/issues/7/comments","events_url":"https://api.github.com/repos/eisensheng/pytest-catchlog/issues/7/events","html_url":"https://github.com/eisensheng/pytest-catchlog/pull/7","id":105490270,"number":7,"title":"Capture logs also from setup and teardown stages","user":{"login":"abusalimov","id":530396,"avatar_url":"https://avatars.githubusercontent.com/u/530396?v=3","gravatar_id":"","url":"https://api.github.com/users/abusalimov","html_url":"https://github.com/abusalimov","followers_url":"https://api.github.com/users/abusalimov/followers","following_url":"https://api.github.com/users/abusalimov/following{/other_user}","gists_url":"https://api.github.com/users/abusalimov/gists{/gist_id}","starred_url":"https://api.github.com/users/abusalimov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abusalimov/subscriptions","organizations_url":"https://api.github.com/users/abusalimov/orgs","repos_url":"https://api.github.com/users/abusalimov/repos","events_url":"https://api.github.com/users/abusalimov/events{/privacy}","received_events_url":"https://api.github.com/users/abusalimov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-09-08T23:47:37Z","updated_at":"2015-10-01T12:50:00Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/eisensheng/pytest-catchlog/pulls/7","html_url":"https://github.com/eisensheng/pytest-catchlog/pull/7","diff_url":"https://github.com/eisensheng/pytest-catchlog/pull/7.diff","patch_url":"https://github.com/eisensheng/pytest-catchlog/pull/7.patch"},"body":"Now for failing tests that log anything during setup/teardown, the corresponding output is reported in separate sections.\r\n\r\nExample:\r\n\r\n    ------------------------ Captured stdlog setup ------------------------\r\n    DEBUG      ...\r\n    ------------------------ Captured stdlog call -------------------------\r\n    INFO       ...\r\n\r\nIssues and drawbacks:\r\n  - Outputs weird _Captured **std**log ..._ captions - should be better fixed it pytest, I think\r\n  - Requires recent versions of pytest, at least 2.6 - one and a half year old at the moment of suggesting the PR (the latest one is 2.7.2 now)\r\n\r\nPlease let me know if you believe these issues must be addressed before merging.\r\n"},"comment":{"url":"https://api.github.com/repos/eisensheng/pytest-catchlog/issues/comments/144717603","html_url":"https://github.com/eisensheng/pytest-catchlog/pull/7#issuecomment-144717603","issue_url":"https://api.github.com/repos/eisensheng/pytest-catchlog/issues/7","id":144717603,"user":{"login":"The-Compiler","id":625793,"avatar_url":"https://avatars.githubusercontent.com/u/625793?v=3","gravatar_id":"","url":"https://api.github.com/users/The-Compiler","html_url":"https://github.com/The-Compiler","followers_url":"https://api.github.com/users/The-Compiler/followers","following_url":"https://api.github.com/users/The-Compiler/following{/other_user}","gists_url":"https://api.github.com/users/The-Compiler/gists{/gist_id}","starred_url":"https://api.github.com/users/The-Compiler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/The-Compiler/subscriptions","organizations_url":"https://api.github.com/users/The-Compiler/orgs","repos_url":"https://api.github.com/users/The-Compiler/repos","events_url":"https://api.github.com/users/The-Compiler/events{/privacy}","received_events_url":"https://api.github.com/users/The-Compiler/received_events","type":"User","site_admin":false},"created_at":"2015-10-01T12:50:00Z","updated_at":"2015-10-01T12:50:00Z","body":"Another possibility for backwards compatibility would be to have a `caplog` and a `catchlog` fixture. Then users can clearly \"opt-in\" to the new API, and it's probably also cleaner to explain \"caplog is deprecated, catchlog is the recommended thing but not backwards-compatible\"."}}