-
Notifications
You must be signed in to change notification settings - Fork 68
Logging to file #641
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
Comments
It's a good idea, what are some other tools that do this? |
I think I believe most applications do log something to files on crash. If we don't want these files in happy path, we can delete them. |
The reason I'm asking is to use some common way to do this. Logging always vs only on crash. By default or only when provided a flag? For example, |
In |
We don't really make use of this in jnigen, now. It's a good idea to eventually use that (ffigen does). OTOH, logs from individual file / classes will be small enough. Where this will be useful is external tools we frequently invoke & summarizer. In issues like #683 we would benefit from seeing what happened when we invoked |
By default, because we can ask 'can you paste .dart_tool/jnigen/gradle.log?` on issue reports. And if you're dumping this file on failure, taking a flag is not very useful way. We can't predict something will fail.
I think on failure is enough. If you find a wrong binding and want to see logs, you can re-run with I can see CMake storing logs in |
One thing I like about combining logs is that I can see the steps in order they happened. So instead of having a
I can understand why k8s does this but JNIgen usually follows a path of execution with a handful of fixed programs being run in a specific order. |
That's also fine. I don't have an opinion on whether invoked tool logs should go to separate files. |
While it's nice to save the log file only on failure, we might invoke logging from contexts which do not involve |
It would be nice for debugging if the logs from last run of
jnigen
are all contained in.dart_tool/jnigen/
, this also allows to separate logs of CMake, gradle etc.. tools, and let APISummarizer have its own logs. @HosseinYousefi wdyt?The text was updated successfully, but these errors were encountered: