-
Notifications
You must be signed in to change notification settings - Fork 294
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
Introduce #dsoHandle and args in addition to #file, #function and #line #72
Comments
@shpakovski Thanks for the issue. The reason I didn't add So if you use SwiftPM, you can just pass As you point out, without breaking public API we also can't add the I'm not sure however we should do this because as you point out you use a lot of private API and what you're doing isn't really guaranteed to work... I think we should wait until os_log releases their new API and then I would hope we have a better way of interfacing with it. |
I need this for a Mac app which is full of frameworks 🙈 And Not sure about this pitch anyway. Because of @weissi It’s great that you replied with more details. And thanks a lot for consideration! |
I agree that interfacing with
I did in a private project re-use a modified version of Though as I understand there's no desire to break the API for this added functionality, with the chance that once a "Swifty" version of EditTo be more specific — since I nerdsniped myself it seems — if |
Hello,
This is more like a pitch, not an issue at all, and it’s probably too late. However, I’d like to have a custom handler for
os_log
, something like this works fine for debugging purposes, even though it’s using private API:Unfortunately, the current
log
signature misses#dsoHandle
andargs
, using#file
,#function
and#line
instead. What do you think about adding two more arguments to thelog
function? Or maybe you have some alternative suggestion?Thanks in advance!
The text was updated successfully, but these errors were encountered: