-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Behavior of minimumSeverity in XcodeLogConfiguration initializer is confusing w/r/t debugMode & verboseDebugMode #80
Comments
Hi Andres, To make it simple for external flags to control debugging-related behavior, the There's a We use this, for example, to set separate This is described a bit more in the documentation, but now that I see the confusion, I'm thinking I might need to change it so Hope this helps, |
Thanks! Turns out the issue is happening only on the simulator, does not happen on the device. |
The behavior you're seeing doesn't sound intentional, and I'm wondering if something else is going on. When you're viewing the output of the logs, are you viewing then through the Mac's Console.app, through the Xcode console pane, or reading log files? Also, if nothing obvious becomes apparent, would you mind sending me source I could use to try to replicate the problem for myself? |
Further testing... The issue only seems t happen in appCode, using the simulator. appCode, Sim - Issue, only 'Info' as originally noted. Let me know if you have trouble replicating the issue. |
@AndresCanella I'm having a similar issue, but it doesn't seem to work for me on the device. I'm using a real device and XCode. Here's my code: Log.enable(minimumSeverity: .verbose,
debugMode: true,
verboseDebugMode: true,
stdStreamsMode: .useAsFallback,
mimicOSLogOutput: true,
showCallSite: true,
filters: [])
Log.verbose?.message("* Verbose")
Log.debug?.message("* Debug")
Log.info?.message("* Info")
Log.warning?.message("* Warning")
Log.error?.message("* Error") And my output:
|
Note when using the Console.App to view your logs: gave me a small headache before discovering this |
I've been trying what according to documentation should work but can not get 'debug' level printout.
output:
^ debug level missing.
While changing minimumSeverity to 'error' will cause the 'info' log to be omitted, so it seems to be an internal issue:
output:
2017-06-01 17:08:44.419152-0600 xxx[81598:1961660] [CleanroomLogger] ❌ error (AppDelegate.swift:22)
Is this a bug, or what am I missing?
The text was updated successfully, but these errors were encountered: