-
Notifications
You must be signed in to change notification settings - Fork 253
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
No logging is done after an --exit #167
Comments
Alternatives:
|
Is this for logging during running of application as well? I cannot see logging message while running. |
Yup logging for as long as the simulator is running, for the app. In 3.x even with --exit flag, you could log to file, but with 4.x, you can't. |
@shazron Alright! Thank you for info. I'm looking forward to this too. |
Hey all, since I spent several days with this bug, I wanted to share my thoughts and my workaround/solution for this with you. Even if you omit the --exit flag and send ios-sim to background using &, the logging isn't done right but old log entries can suddenly appear in the log output. The culprit for this isn't clear to me, as fs.watch in the Tail module gets a "rename" event even if the system.log of the emulator wasn't renamed. When that event was raised, all contents of the simulator's system.log gets copied into the log output again. So maybe it's an issue within the fs module, but I don't know. In our scenario, we run unit tests with Jasmine in the emulator and need to wait for a specific line to determine if the tests were successful or not. My workaround is this little script:
In the first part of the script, I get the emulator's UDID via the given device type and iOS version. Then I use Phonegap only to build the app but start it then in ios-sim manually. In the last part, I only wait for the expected line. I hope that this script may be useful for others, too! -- Max |
Unlike ios-sim 3.x, we can't log after the process exits.
The text was updated successfully, but these errors were encountered: