I'm STILL working on sandboxing accommodations, 4 years later than I expected. Today's task? Get the crash reporter access to console log
-
-
@danielpunkass And do you redirect NSLog to catch messages logged by the frameworks for your process? -
@mjtsai I think I don't have to ... I think it happens automatically by NSLog doubling to stderr, but I could be wrong. -
@danielpunkass Yes. Thought maybe you were using your own custom logging function. - View other replies
-
@mjtsai It was the desire to keep logging more or less "the same as ever" that led me to this solution. -
@danielpunkass@mjtsai Have you considered the Apple System Log API? Not exactly keeping it the same, but might be suitable for your needs. -
-
@danielpunkass I figured you could direct the log messages to a file within your sandbox and then query from that? -
@wadeco Oh, hm, that's an idea. Yeah I had a comment in my hack that says "try to get time-based filtering like ASL", so maybe! - Show more
-
-
-
@danielpunkass That’s great except if there’s a related error logged by another process that you don’t control. -
@mjtsai Absolutely, but that's not even in the realm of possibility for sandboxed apps, so I am making the most of what I have. -
@danielpunkass@mjtsai does asl_add_log() work in these contexts? -
@rosyna@danielpunkass Yes, but you’re not allowed to query ASL so that defeats the purpose.
-
-
-
@danielpunkass so same log file but sent to two different locations? -
.
@f_hanshaw Yeah. Using freopen() you can redirect stderr, but NSLog will still go to system log as well.pic.twitter.com/hdzWAFWbTK
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
Daniel Jalkut
Michael Tsai
Wade Cosgrove
Rosyna Keller
James F Hanshaw