{"action":"created","issue":{"url":"https://api.github.com/repos/PumucklOnTheAir/TestFramework/issues/186","repository_url":"https://api.github.com/repos/PumucklOnTheAir/TestFramework","labels_url":"https://api.github.com/repos/PumucklOnTheAir/TestFramework/issues/186/labels{/name}","comments_url":"https://api.github.com/repos/PumucklOnTheAir/TestFramework/issues/186/comments","events_url":"https://api.github.com/repos/PumucklOnTheAir/TestFramework/issues/186/events","html_url":"https://github.com/PumucklOnTheAir/TestFramework/issues/186","id":143935506,"number":186,"title":"Frage zum Logger","user":{"login":"Symen","id":15213455,"avatar_url":"https://avatars.githubusercontent.com/u/15213455?v=3","gravatar_id":"","url":"https://api.github.com/users/Symen","html_url":"https://github.com/Symen","followers_url":"https://api.github.com/users/Symen/followers","following_url":"https://api.github.com/users/Symen/following{/other_user}","gists_url":"https://api.github.com/users/Symen/gists{/gist_id}","starred_url":"https://api.github.com/users/Symen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Symen/subscriptions","organizations_url":"https://api.github.com/users/Symen/orgs","repos_url":"https://api.github.com/users/Symen/repos","events_url":"https://api.github.com/users/Symen/events{/privacy}","received_events_url":"https://api.github.com/users/Symen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/PumucklOnTheAir/TestFramework/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-28T09:20:25Z","updated_at":"2016-03-28T10:20:41Z","closed_at":null,"body":"@Sniger87 mal ne Frage: \r\nWarum gibt folgender Code, wenn ich ihn ganz normal ausführe nicht auch \r\n\"[+] done with work\" \r\nzurück?\r\n```\r\nimport logging\r\nfrom log.loggersetup import LoggerSetup\r\nfrom time import sleep\r\n\r\n\r\nclass TestLogger:\r\n\r\n    def __init__(self):\r\n        LoggerSetup.setup()\r\n\r\n    def no_subprocess(self):\r\n        logging.info(\"%stest_no_subprocess \", LoggerSetup.get_log_deep(1))\r\n        logging.debug(\"%sdo some work ...\", LoggerSetup.get_log_deep(2))\r\n        sleep(5)\r\n        logging.debug(\"%s[+] done with work\", LoggerSetup.get_log_deep(2))\r\n\r\n    def close(self):\r\n        LoggerSetup.shutdown()\r\n\r\ntl = TestLogger()\r\ntl.no_subprocess()\r\ntl.close()\r\n```\r\n\r\nErgebnis im log-file:\r\n```\r\n2016-03-28 11:13:00,009 - INFO     : \ttest_no_subprocess \r\n2016-03-28 11:13:00,014 - DEBUG    : \t\tdo some work ...\r\n```"},"comment":{"url":"https://api.github.com/repos/PumucklOnTheAir/TestFramework/issues/comments/202333624","html_url":"https://github.com/PumucklOnTheAir/TestFramework/issues/186#issuecomment-202333624","issue_url":"https://api.github.com/repos/PumucklOnTheAir/TestFramework/issues/186","id":202333624,"user":{"login":"Symen","id":15213455,"avatar_url":"https://avatars.githubusercontent.com/u/15213455?v=3","gravatar_id":"","url":"https://api.github.com/users/Symen","html_url":"https://github.com/Symen","followers_url":"https://api.github.com/users/Symen/followers","following_url":"https://api.github.com/users/Symen/following{/other_user}","gists_url":"https://api.github.com/users/Symen/gists{/gist_id}","starred_url":"https://api.github.com/users/Symen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Symen/subscriptions","organizations_url":"https://api.github.com/users/Symen/orgs","repos_url":"https://api.github.com/users/Symen/repos","events_url":"https://api.github.com/users/Symen/events{/privacy}","received_events_url":"https://api.github.com/users/Symen/received_events","type":"User","site_admin":false},"created_at":"2016-03-28T10:20:40Z","updated_at":"2016-03-28T10:20:40Z","body":"Hab das Gefühl irgendwas wird zu früh geschlossen.\r\nMit sleep(1) am Ende, bleibt die Ausgabe anscheinend konstant richtig.\r\n\r\n```\r\n...\r\ndef no_subprocess(self):\r\n        logging.info(\"%stest_no_subprocess \", LoggerSetup.get_log_deep(1))\r\n        logging.debug(\"%sdo some work ...\", LoggerSetup.get_log_deep(2))\r\n        sleep(5)\r\n        logging.debug(\"%s[+] done with work\", LoggerSetup.get_log_deep(2))\r\n        logging.info(\"%send test\", LoggerSetup.get_log_deep(1))\r\n        sleep(1)\r\n...\r\n```"}}