{"action":"created","issue":{"url":"https://api.github.com/repos/optimizers/logging4matlab/issues/9","repository_url":"https://api.github.com/repos/optimizers/logging4matlab","labels_url":"https://api.github.com/repos/optimizers/logging4matlab/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/optimizers/logging4matlab/issues/9/comments","events_url":"https://api.github.com/repos/optimizers/logging4matlab/issues/9/events","html_url":"https://github.com/optimizers/logging4matlab/issues/9","id":254039908,"number":9,"title":"Error in creating logger while running matlab -nodesktop mode","user":{"login":"ragavsathish","id":7013764,"avatar_url":"https://avatars3.githubusercontent.com/u/7013764?v=4","gravatar_id":"","url":"https://api.github.com/users/ragavsathish","html_url":"https://github.com/ragavsathish","followers_url":"https://api.github.com/users/ragavsathish/followers","following_url":"https://api.github.com/users/ragavsathish/following{/other_user}","gists_url":"https://api.github.com/users/ragavsathish/gists{/gist_id}","starred_url":"https://api.github.com/users/ragavsathish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ragavsathish/subscriptions","organizations_url":"https://api.github.com/users/ragavsathish/orgs","repos_url":"https://api.github.com/users/ragavsathish/repos","events_url":"https://api.github.com/users/ragavsathish/events{/privacy}","received_events_url":"https://api.github.com/users/ragavsathish/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-08-30T15:24:11Z","updated_at":"2017-09-14T13:30:00Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Logging instance is not created when running the MATLAB environment in command line mode.\r\npossible reason [logging.m#L47](https://github.com/optimizers/logging4matlab/blob/master/%2Blogging/logging.m#L47)\r\n```\r\nError using desktop (line 20)\r\nInvalid default value for property 'using_terminal' in class 'logging.logging':\r\ndesktop is not supported because:\r\nSwing is not currently available.\r\n\r\nError in logging.getLogger (line 14)\r\n    obj = logging.logging(name, varargin{:});\r\n```"},"comment":{"url":"https://api.github.com/repos/optimizers/logging4matlab/issues/comments/329482083","html_url":"https://github.com/optimizers/logging4matlab/issues/9#issuecomment-329482083","issue_url":"https://api.github.com/repos/optimizers/logging4matlab/issues/9","id":329482083,"user":{"login":"dpo","id":38760,"avatar_url":"https://avatars1.githubusercontent.com/u/38760?v=4","gravatar_id":"","url":"https://api.github.com/users/dpo","html_url":"https://github.com/dpo","followers_url":"https://api.github.com/users/dpo/followers","following_url":"https://api.github.com/users/dpo/following{/other_user}","gists_url":"https://api.github.com/users/dpo/gists{/gist_id}","starred_url":"https://api.github.com/users/dpo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dpo/subscriptions","organizations_url":"https://api.github.com/users/dpo/orgs","repos_url":"https://api.github.com/users/dpo/repos","events_url":"https://api.github.com/users/dpo/events{/privacy}","received_events_url":"https://api.github.com/users/dpo/received_events","type":"User","site_admin":false},"created_at":"2017-09-14T13:30:00Z","updated_at":"2017-09-14T13:30:00Z","author_association":"OWNER","body":"Is `Matlab` (with capital M) an alias in your case? Are you sure you're not also using `-nojvm`?\r\n\r\n```bash\r\ndpo:~ $ matlab -nodesktop\r\n\r\n                            < M A T L A B (R) >\r\n                  Copyright 1984-2016 The MathWorks, Inc.\r\n                   R2016a (9.0.0.341360) 64-bit (maci64)\r\n                             February 11, 2016\r\n\r\n \r\nTo get started, type one of these: helpwin, helpdesk, or demo.\r\nFor product information, visit www.mathworks.com.\r\n \r\n\r\n\tAcademic License\r\n\r\n>> logger = logging.getLogger('mylogger')\r\nlogger = \r\n  logging with properties:\r\n\r\n                   ALL: 0\r\n                 TRACE: 1\r\n                 DEBUG: 2\r\n                  INFO: 3\r\n               WARNING: 4\r\n                 ERROR: 5\r\n              CRITICAL: 6\r\n                   OFF: 7\r\n       colors_terminal: [6x1 containers.Map]\r\n          level_colors: [6x1 containers.Map]\r\n                levels: [8x1 containers.Map]\r\n         level_numbers: [8x1 containers.Map]\r\n           level_range: [0 7]\r\n                  name: 'mylogger'\r\n              fullpath: 'logging.log'\r\n                logfmt: '%-s %-23s %-8s %s\\n'\r\n                logfid: -1\r\n             logcolors: [6x1 containers.Map]\r\n        using_terminal: 1\r\n               datefmt: 'yyyy-mm-dd HH:MM:SS,FFF'\r\n              logLevel: 7\r\n    commandWindowLevel: 3\r\n>> logger.info('Look Ma, no desktop!')\r\nlogging.info 2017-09-14 09:27:13,952 INFO     Look Ma, no desktop!\r\n```\r\nbut\r\n```bash\r\ndpo:~ $ matlab -nojvm -nodesktop\r\n\r\n                            < M A T L A B (R) >\r\n                  Copyright 1984-2016 The MathWorks, Inc.\r\n                   R2016a (9.0.0.341360) 64-bit (maci64)\r\n                             February 11, 2016\r\n\r\n \r\nFor online documentation, see http://www.mathworks.com/support\r\nFor product information, visit www.mathworks.com.\r\n \r\n\r\n\tAcademic License\r\n\r\n>> logger = logging.getLogger('mylogger')\r\nError using desktop (line 20)\r\ndesktop is not supported because:\r\nJava is not currently available.\r\nError in logging.logging (line 122)\r\n    function self = logging(name, opts)\r\n\r\nError in logging.getLogger (line 14)\r\n    obj = logging.logging(name, varargin{:}); \r\n```"}}
{"actor":{"display_login":"dpo"}}