-
Notifications
You must be signed in to change notification settings - Fork 15
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
[API question] Printing logs to stdout
#45
Comments
@felix91gr, do you have a project file you can point me to? Trying to figure out how this is executed and packaged. Btw, I don't see anything obvious from the gist. Remember that currently TraceLog is asynchronous so there is a possibility that the message did not have a chance to print before the script finished. |
Yes, I'll upload it to github. Gimme a couple of minutes :) |
Sorry for the name, but I was thinking of offering it to you as a TraceLog showcase project after I figured out how to use it :) The idea would be to show the most common use cases of the library. If you want me to, I can change the name np 👍 |
So as I expected it was the async nature of TraceLog. Try this (and I know it is not the right solution but it will show the issue with a script):
So it would be very easy to add a sync mode for script usage. |
Btw, maybe rename it to |
It was indeed! now it works flawlessly :') |
It is done :) |
I should write something before closing the issue:
|
Hi again :)
Not wanting to clutter up #44 unnecessarily, I've opened this issue.
I'm learning the basics of TraceLog by writing a Swift script. So far, it compiles, but I can't seem to be able to print the logs to
stdout
and I don't really know why. Here's what I have so far. I must be missing a config step or something?Thanks :)
The text was updated successfully, but these errors were encountered: