{"action":"created","issue":{"url":"https://api.github.com/repos/DaveWoodCom/XCGLogger/issues/247","repository_url":"https://api.github.com/repos/DaveWoodCom/XCGLogger","labels_url":"https://api.github.com/repos/DaveWoodCom/XCGLogger/issues/247/labels{/name}","comments_url":"https://api.github.com/repos/DaveWoodCom/XCGLogger/issues/247/comments","events_url":"https://api.github.com/repos/DaveWoodCom/XCGLogger/issues/247/events","html_url":"https://github.com/DaveWoodCom/XCGLogger/issues/247","id":295328288,"number":247,"title":"XCGLogger doesn't work when passed to a class in another framework","user":{"login":"invoy-ghigley","id":13738098,"avatar_url":"https://avatars2.githubusercontent.com/u/13738098?v=4","gravatar_id":"","url":"https://api.github.com/users/invoy-ghigley","html_url":"https://github.com/invoy-ghigley","followers_url":"https://api.github.com/users/invoy-ghigley/followers","following_url":"https://api.github.com/users/invoy-ghigley/following{/other_user}","gists_url":"https://api.github.com/users/invoy-ghigley/gists{/gist_id}","starred_url":"https://api.github.com/users/invoy-ghigley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/invoy-ghigley/subscriptions","organizations_url":"https://api.github.com/users/invoy-ghigley/orgs","repos_url":"https://api.github.com/users/invoy-ghigley/repos","events_url":"https://api.github.com/users/invoy-ghigley/events{/privacy}","received_events_url":"https://api.github.com/users/invoy-ghigley/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-07T23:14:09Z","updated_at":"2018-02-08T00:14:44Z","closed_at":null,"author_association":"NONE","body":"I have a class defined in another framework which accepts an already-defined `XCGLogger` instance, e.g.,\r\n\r\n```swift\r\nimport Processing\r\n\r\n/* ... */\r\n\r\nlet processor = Processor()\r\nprocessor.logger = logger\r\n```\r\n\r\nI've verified that logger is non-nil, that log levels are set appropriately, etc. What happens is that the main app, which created the logger, logs everything just fine. But using the same methods on the same logger instance, the class imported from the framework _logs nothing_. (Its logging is all internal, by the way. In other words, it uses the logger within its own methods and properties.)\r\n\r\nAny ideas?"},"comment":{"url":"https://api.github.com/repos/DaveWoodCom/XCGLogger/issues/comments/363957516","html_url":"https://github.com/DaveWoodCom/XCGLogger/issues/247#issuecomment-363957516","issue_url":"https://api.github.com/repos/DaveWoodCom/XCGLogger/issues/247","id":363957516,"user":{"login":"invoy-ghigley","id":13738098,"avatar_url":"https://avatars2.githubusercontent.com/u/13738098?v=4","gravatar_id":"","url":"https://api.github.com/users/invoy-ghigley","html_url":"https://github.com/invoy-ghigley","followers_url":"https://api.github.com/users/invoy-ghigley/followers","following_url":"https://api.github.com/users/invoy-ghigley/following{/other_user}","gists_url":"https://api.github.com/users/invoy-ghigley/gists{/gist_id}","starred_url":"https://api.github.com/users/invoy-ghigley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/invoy-ghigley/subscriptions","organizations_url":"https://api.github.com/users/invoy-ghigley/orgs","repos_url":"https://api.github.com/users/invoy-ghigley/repos","events_url":"https://api.github.com/users/invoy-ghigley/events{/privacy}","received_events_url":"https://api.github.com/users/invoy-ghigley/received_events","type":"User","site_admin":false},"created_at":"2018-02-08T00:14:44Z","updated_at":"2018-02-08T00:14:44Z","author_association":"NONE","body":"Let me clarify, the behavior I was seeing was actually that I was getting console output but not output to a log file. I was getting output to the log file from the main app, but not the framework. \r\n\r\nA reboot fixed this, though I can't for the life of me understand why. So this can be closed, though I'm still baffled."}}
{"actor":{"display_login":"invoy-ghigley"}}