{"action":"created","issue":{"url":"https://api.github.com/repos/Slicer/Slicer/issues/205","labels_url":"https://api.github.com/repos/Slicer/Slicer/issues/205/labels{/name}","comments_url":"https://api.github.com/repos/Slicer/Slicer/issues/205/comments","events_url":"https://api.github.com/repos/Slicer/Slicer/issues/205/events","html_url":"https://github.com/Slicer/Slicer/pull/205","id":51316659,"number":205,"title":"ENH: Improved logging for easier troubleshooting","user":{"login":"lassoan","id":307929,"avatar_url":"https://avatars.githubusercontent.com/u/307929?v=3","gravatar_id":"","url":"https://api.github.com/users/lassoan","html_url":"https://github.com/lassoan","followers_url":"https://api.github.com/users/lassoan/followers","following_url":"https://api.github.com/users/lassoan/following{/other_user}","gists_url":"https://api.github.com/users/lassoan/gists{/gist_id}","starred_url":"https://api.github.com/users/lassoan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lassoan/subscriptions","organizations_url":"https://api.github.com/users/lassoan/orgs","repos_url":"https://api.github.com/users/lassoan/repos","events_url":"https://api.github.com/users/lassoan/events{/privacy}","received_events_url":"https://api.github.com/users/lassoan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2014-12-08T15:51:51Z","updated_at":"2015-03-10T03:11:49Z","closed_at":"2015-03-10T02:30:53Z","pull_request":{"url":"https://api.github.com/repos/Slicer/Slicer/pulls/205","html_url":"https://github.com/Slicer/Slicer/pull/205","diff_url":"https://github.com/Slicer/Slicer/pull/205.diff","patch_url":"https://github.com/Slicer/Slicer/pull/205.patch"},"body":"When users report a crash we need to ask a lot of questions (what operating system, Slicer version is used, how much memory is in the computer, how large images are loaded, what module was used, etc). Instead, we will be able to just ask them to provide the application log, as it will contain all these information. Lots of useful information is included now and as we identify further important troubleshooting data, those should be added to the application log, too.\r\n\r\n* Added vtkInfoMacro logging macro, that logs an INFO message from VTK objects. vtkDebugMacro was not usable for information logging, as it only logs the message if debug is enabled for the particular object (also, typically debug output contains many low-level details).\r\n* Added more detailed system and application info logging (operating system, memory, CPU, additional module paths, developer mode flag, executable CLI preference flag).\r\n* Fixed system info logging for Windows (vtksys computes returns incorrect virtual memory size and number of physical CPUs).\r\n* Log whenever user switches to another module (in case of a crash we know then what module was active).\r\n* Log loaded volume size (this allows us to see if the volume size is very large compared to the available memory), for example: vtkMRMLVolumeArchetypeStorageNode (000000DC38FDF230): Loaded volume from file: C:/S4/Libs/MRML/Core/Testing/TestData/fixed.nrrd. Dimensions: 65x65x32. Number of components: 1. Pixel type: short.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Slicer/Slicer/issues/comments/77988553","html_url":"https://github.com/Slicer/Slicer/pull/205#issuecomment-77988553","issue_url":"https://api.github.com/repos/Slicer/Slicer/issues/205","id":77988553,"user":{"login":"lassoan","id":307929,"avatar_url":"https://avatars.githubusercontent.com/u/307929?v=3","gravatar_id":"","url":"https://api.github.com/users/lassoan","html_url":"https://github.com/lassoan","followers_url":"https://api.github.com/users/lassoan/followers","following_url":"https://api.github.com/users/lassoan/following{/other_user}","gists_url":"https://api.github.com/users/lassoan/gists{/gist_id}","starred_url":"https://api.github.com/users/lassoan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lassoan/subscriptions","organizations_url":"https://api.github.com/users/lassoan/orgs","repos_url":"https://api.github.com/users/lassoan/repos","events_url":"https://api.github.com/users/lassoan/events{/privacy}","received_events_url":"https://api.github.com/users/lassoan/received_events","type":"User","site_admin":false},"created_at":"2015-03-10T03:11:49Z","updated_at":"2015-03-10T03:11:49Z","body":"Builds fine on Windows. It would be great if you could investigate/fix on Linux."}}