{"action":"created","issue":{"url":"https://api.github.com/repos/CocoaLumberjack/CocoaLumberjack/issues/1006","repository_url":"https://api.github.com/repos/CocoaLumberjack/CocoaLumberjack","labels_url":"https://api.github.com/repos/CocoaLumberjack/CocoaLumberjack/issues/1006/labels{/name}","comments_url":"https://api.github.com/repos/CocoaLumberjack/CocoaLumberjack/issues/1006/comments","events_url":"https://api.github.com/repos/CocoaLumberjack/CocoaLumberjack/issues/1006/events","html_url":"https://github.com/CocoaLumberjack/CocoaLumberjack/issues/1006","id":395907881,"node_id":"MDU6SXNzdWUzOTU5MDc4ODE=","number":1006,"title":"[Question]: Inconsistent behaviour between DDOSLogger & DDASLLogger (Console.app)","user":{"login":"dive","id":59749,"node_id":"MDQ6VXNlcjU5NzQ5","avatar_url":"https://avatars3.githubusercontent.com/u/59749?v=4","gravatar_id":"","url":"https://api.github.com/users/dive","html_url":"https://github.com/dive","followers_url":"https://api.github.com/users/dive/followers","following_url":"https://api.github.com/users/dive/following{/other_user}","gists_url":"https://api.github.com/users/dive/gists{/gist_id}","starred_url":"https://api.github.com/users/dive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dive/subscriptions","organizations_url":"https://api.github.com/users/dive/orgs","repos_url":"https://api.github.com/users/dive/repos","events_url":"https://api.github.com/users/dive/events{/privacy}","received_events_url":"https://api.github.com/users/dive/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2019-01-04T12:21:45Z","updated_at":"2019-01-04T13:57:55Z","closed_at":"2019-01-04T13:57:55Z","author_association":"NONE","body":"### New Issue Checklist\r\n\r\n* [x] I have read and understood the [CONTRIBUTING guide](https://github.com/CocoaLumberjack/CocoaLumberjack/blob/master/.github/CONTRIBUTING.md)\r\n* [x] I have read the [Documentation](https://github.com/CocoaLumberjack/CocoaLumberjack#documentation) or [CocoaDocs](cocoadocs.org/docsets/CocoaLumberjack)\r\n* [x] I have searched for a similar issue in the [project](https://github.com/CocoaLumberjack/CocoaLumberjack/issues) and found none\r\n\r\n### Issue Info\r\n\r\n Info                    | Value                               |\r\n-------------------------|-------------------------------------|\r\n Platform Name           | iOS\r\n Platform Version        | 12.1\r\n CocoaLumberjack Version | 3.4.2\r\n Integration Method      | Carthage\r\n Xcode Version           | 10.1\r\n Repro rate              | 100%\r\n Demo project link       | code example is below\r\n\r\n### Issue Description and Steps\r\n\r\nHello there.\r\n\r\nIt seems that CocoaLumberjack behaves differently for `DDOSLogger` and `DDASLLogger` in the same situation. For me, all `DDOSLogger` messages that are higher than `DDLogLevelInfo` are missing in Console.app but the same `DDLog*` calls via `DDASLLogger` are okay.\r\n\r\nFor example, imagine that you have the following functions:\r\n```swift\r\nprivate func checkDDOSLogger() {\r\n    DDLog.removeAllLoggers()\r\n    DDLog.add(DDOSLogger.sharedInstance)\r\n    self.logEverything()\r\n}\r\n\r\nprivate func checkDDASLLogger() {\r\n    DDLog.removeAllLoggers()\r\n    DDLog.add(DDASLLogger.sharedInstance)\r\n    self.logEverything()\r\n}\r\n\r\nprivate func logEverything() {\r\n    guard let currentLogger = DDLog.allLoggers.first else { fatalError() }\r\n    let prefix = \"[x] \\(type(of: currentLogger))\"\r\n    DDLogDebug  (\"\\(prefix): DDLogDebug\")\r\n    DDLogVerbose(\"\\(prefix): DDLogVerbose\")\r\n    DDLogError  (\"\\(prefix): DDLogError\")\r\n    DDLogInfo   (\"\\(prefix): DDLogInfo\")\r\n    DDLogWarn   (\"\\(prefix): DDLogWarn\")\r\n}\r\n```\r\n\r\nWhen I call `checkDDOSLogger()` then I see the following output in Xcode:\r\n> [x] DDOSLogger: DDLogDebug\r\n> [x] DDOSLogger: DDLogVerbose\r\n> [x] DDOSLogger: DDLogError\r\n> [x] DDOSLogger: DDLogInfo\r\n> [x] DDOSLogger: DDLogWarn\r\n\r\nbut in Console.app I see only this:\r\n> error\t12:15:59.528635 +0000\t...\t[x] DDOSLogger: DDLogError\r\n> info\t12:15:59.528868 +0000\t...\t[x] DDOSLogger: DDLogInfo\r\n> info\t12:15:59.529031 +0000\t...\t[x] DDOSLogger: DDLogWarn\r\n\r\nIn the situation with `checkDDASLLogger()`, I see this in Xcode:\r\n> [x] DDASLLogger: DDLogDebug\r\n> [x] DDASLLogger: DDLogVerbose\r\n> [x] DDASLLogger: DDLogError\r\n> [x] DDASLLogger: DDLogInfo\r\n> [x] DDASLLogger: DDLogWarn\r\n\r\nand in Console.app:\r\n> default\t12:18:02.496514 +0000\t...\t[x] DDASLLogger: DDLogDebug\r\n> default\t12:18:02.496714 +0000\t...\t[x] DDASLLogger: DDLogVerbose\r\n> default\t12:18:02.496942 +0000\t...\t[x] DDASLLogger: DDLogError\r\n> default\t12:18:02.497211 +0000\t...\t[x] DDASLLogger: DDLogInfo\r\n> default\t12:18:02.497416 +0000\t...\t[x] DDASLLogger: DDLogWarn\r\n\r\nAs you can see, there are no Debug and Verbose message in case of `DDOSLogger` and I'm trying to understand why. Any thoughts?\r\n\r\nP.S. This is important to me because historically we use a lot of levels to separate logs in our apps. I recently switched to `DDOSLogger` and now it's almost impossible to use Console.app due to this problem."},"comment":{"url":"https://api.github.com/repos/CocoaLumberjack/CocoaLumberjack/issues/comments/451450205","html_url":"https://github.com/CocoaLumberjack/CocoaLumberjack/issues/1006#issuecomment-451450205","issue_url":"https://api.github.com/repos/CocoaLumberjack/CocoaLumberjack/issues/1006","id":451450205,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MTQ1MDIwNQ==","user":{"login":"ffried","id":1689782,"node_id":"MDQ6VXNlcjE2ODk3ODI=","avatar_url":"https://avatars0.githubusercontent.com/u/1689782?v=4","gravatar_id":"","url":"https://api.github.com/users/ffried","html_url":"https://github.com/ffried","followers_url":"https://api.github.com/users/ffried/followers","following_url":"https://api.github.com/users/ffried/following{/other_user}","gists_url":"https://api.github.com/users/ffried/gists{/gist_id}","starred_url":"https://api.github.com/users/ffried/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ffried/subscriptions","organizations_url":"https://api.github.com/users/ffried/orgs","repos_url":"https://api.github.com/users/ffried/repos","events_url":"https://api.github.com/users/ffried/events{/privacy}","received_events_url":"https://api.github.com/users/ffried/received_events","type":"User","site_admin":false},"created_at":"2019-01-04T13:57:55Z","updated_at":"2019-01-04T13:57:55Z","author_association":"CONTRIBUTOR","body":"I'm closing this issue, since there's not much CocoaLumberjack can do here. It's up to Apple to fix this. 🙂 "}}
{"actor":{"display_login":"ffried"}}