-
Notifications
You must be signed in to change notification settings - Fork 0
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
Explore a way to listen to and capture things sent to os_log
#118
Comments
After my investigation into this, it is possible since iOS15 to capture There are a few caveats though, one being that basic To add to that, a quick search across all our repos reveals that we almost never use I think the bigger discussion that is warranted is using OSLog framework in replacement of XCLogger, as discussed here: #89 |
Yeah this seems very reasonable to me, @nbrooke do you remember why we wanted to do it this way? |
I don't think there's like a specific "this way" we want to approach this, it's more just a vague sense of "it would be nice if we were integrating with the system logging to some degree", that both this bug and #89 are expressing. I think the benefits that #89 lists are still the ones that make this sort of thing desirable.
This is a bit of a chicken and egg thing. We don't use
One thing that I think IS totally reasonable to do if we go this route is to set some rules about how we need to structure the log identifiers to make them work best with Steamclog. Like we say "for Steamclock open source projects the
The cases where we would want ALL the logs are pretty narrow, but when they happen I think it's reasonable for them to be noisy. Like one of the options we have now is to save the verbose Steamclog logs to disk and attach that file to the sentry reports of serious errors. When you hit a situation where things have gone horribly wrong, the fullest logs we can get for the last few seconds or minutes before the failure CAN be super useful even if they are very noisy. In some case there are MORE useful if they are noisy, because they might contain unintentional clues about what is happening from stuff that you didn't intentionally log from other OS subsystems or whatever. The "full logs attached to sentry reports" scenario might be the easiest and highest value thing to start off with here. I think even just replacing the current on-disk logs with writing those to |
This came up in a NiceComponents PR, here
Right now, anything sent to
os_log
is basically lost by Steamclog, it would be nice if we're able to capture it somehowThe text was updated successfully, but these errors were encountered: