{"action":"created","issue":{"url":"https://api.github.com/repos/ipython/ipython/issues/8093","labels_url":"https://api.github.com/repos/ipython/ipython/issues/8093/labels{/name}","comments_url":"https://api.github.com/repos/ipython/ipython/issues/8093/comments","events_url":"https://api.github.com/repos/ipython/ipython/issues/8093/events","html_url":"https://github.com/ipython/ipython/issues/8093","id":63121510,"number":8093,"title":"/var/log/ipynb.log gets wiped out on kernel restart and no more logging occurs","user":{"login":"kbroughton","id":10562482,"avatar_url":"https://avatars.githubusercontent.com/u/10562482?v=3","gravatar_id":"","url":"https://api.github.com/users/kbroughton","html_url":"https://github.com/kbroughton","followers_url":"https://api.github.com/users/kbroughton/followers","following_url":"https://api.github.com/users/kbroughton/following{/other_user}","gists_url":"https://api.github.com/users/kbroughton/gists{/gist_id}","starred_url":"https://api.github.com/users/kbroughton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbroughton/subscriptions","organizations_url":"https://api.github.com/users/kbroughton/orgs","repos_url":"https://api.github.com/users/kbroughton/repos","events_url":"https://api.github.com/users/kbroughton/events{/privacy}","received_events_url":"https://api.github.com/users/kbroughton/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-20T00:13:23Z","updated_at":"2015-03-20T01:19:23Z","closed_at":null,"body":"\r\nI am running ipython notebook via supervisord\r\n\r\n    command=/opt/anaconda/bin/ipython notebook --no-browser --port \"7782\"  --logfile \"/var/log/kbroughton_ipynb.log\" --ip \"172.x.y.z\" --hb \"7776\" --NotebookApp.password=sha1:c3b41**redacted --certfile=/etc/pki/ipython.pem\r\n\r\nLogging works great at first\r\n\r\n    root@kbr-compute:/etc/supervisor# tail /var/log/kbroughton_ipynb.log\r\n    2015-03-20 00:05:30.955 [NotebookApp] Using existing profile dir: u'/home/kbroughton/.ipython/profile_default'\r\n    2015-03-20 00:05:30.966 [NotebookApp] Using MathJax from CDN: https://cdn.mathjax.org/mathjax/latest/MathJax.js\r\n    ...\r\nAfter a kernel restart\r\n root@kbr-compute:/etc/supervisor# tail /var/log/kbroughton_ipynb.log\r\n# IPython log file\r\n\r\nThe above is the only line in the file, despite activities that should create logs like failed logins.\r\n\r\nHere is my system conf.\r\n\r\nroot@kbr-compute:/etc/supervisor# python -c \"import IPython; print(IPython.sys_info())\"\r\n{'commit_hash': 'd87a8cd',\r\n 'commit_source': 'installation',\r\n 'default_encoding': 'UTF-8',\r\n 'ipython_path': '/opt/anaconda/lib/python2.7/site-packages/IPython',\r\n 'ipython_version': '2.2.0',\r\n 'os_name': 'posix',\r\n 'platform': 'Linux-3.13.0-30-generic-x86_64-with-debian-jessie-sid',\r\n 'sys_executable': '/opt/anaconda/bin/python',\r\n 'sys_platform': 'linux2',\r\n 'sys_version': '2.7.9 |Anaconda 2.1.0 (64-bit)| (default, Mar  9 2015, 16:20:48) \\n[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)]'}\r\n\r\nI should be able to test from master if needed.\r\n\r\nI would expect that a kernel restart should be noted in the logs and they would continue merilly.\r\n\r\nI can reset the logging by restarting supervisor on the process\r\n[root@kbr-compute:/etc/supervisor ] supervisorctl restart kbroughton_ipython_notebook\r\n\r\nPossibly Related\r\nhttp://stackoverflow.com/questions/18786912/get-output-from-the-logging-module-in-ipython-notebook\r\nhttps://pytools.codeplex.com/workitem/1836"},"comment":{"url":"https://api.github.com/repos/ipython/ipython/issues/comments/83837416","html_url":"https://github.com/ipython/ipython/issues/8093#issuecomment-83837416","issue_url":"https://api.github.com/repos/ipython/ipython/issues/8093","id":83837416,"user":{"login":"Carreau","id":335567,"avatar_url":"https://avatars.githubusercontent.com/u/335567?v=3","gravatar_id":"","url":"https://api.github.com/users/Carreau","html_url":"https://github.com/Carreau","followers_url":"https://api.github.com/users/Carreau/followers","following_url":"https://api.github.com/users/Carreau/following{/other_user}","gists_url":"https://api.github.com/users/Carreau/gists{/gist_id}","starred_url":"https://api.github.com/users/Carreau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Carreau/subscriptions","organizations_url":"https://api.github.com/users/Carreau/orgs","repos_url":"https://api.github.com/users/Carreau/repos","events_url":"https://api.github.com/users/Carreau/events{/privacy}","received_events_url":"https://api.github.com/users/Carreau/received_events","type":"User","site_admin":false},"created_at":"2015-03-20T01:19:23Z","updated_at":"2015-03-20T01:19:23Z","body":"Note that IPython 3.0 is the new stable, and that in IPython 3 you cannot pass the kernels flag to the notebook anymore. \r\n"}}