-
Notifications
You must be signed in to change notification settings - Fork 571
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
NSLogger 1.7.0 and the kLoggerOption_LogToConsole option. #209
Comments
Maybe I have been a little been too quick. If the application will never connect to an app, then the logs won't be displayed to the xcode console. But we are still experiencing our issue : "the logs are lost before the connection occurs.". |
I'm having the same issue, it's because of the change in the way console logs are being captured. I'll revert to the old code as this is affecting me and many others. |
Thanks for your time.
|
@fpillet Hi Florent. I think we need to tweet the desktop viewer to add the option whether to display or not the console output. It can be very distracting at times. No way to turn it off now. |
@nkanellopoulos two things: 1. you can turn console logging off with log options, 2. you can filter these logs out by setting up a filter that excludes tags |
Fixed the issue -- NSLogger 1.7.0 introduced a new way of capturing stdout/stderr (using dispatch sources) and this completely shut the mirroring that we could previously do to the connected console (Xcode...). I reverted the code to the previous version that was working well. |
This is in HEAD and will be in 1.8.0 that I'll release imminently. |
Hello,
we had an issue. We are sending the logs to the console and the NSLogger desktop app (logDesktop). At startup time, we have some logs in the xcode console but not in the logDesktop. After a bit of investigation, it seems the log queued before the connection to the logDesktop. I have found the code that causes our issue :
LoggerClient.m line 949 :
These piece of code flush the log to the console only, if kLoggerOption_LogToConsole is on and the connection not yet established. I think this is a bug as the documentation does not mention that ("NSLogger can now both log to system console and send the logs over the wire"). Right now I have solved this by commenting the while statement. Can you fix this ?
thanks,
The text was updated successfully, but these errors were encountered: