App store reject on asl log. How else do I get at the log messages?

  • Hi,

    My app was rejected from the store because I wanted the entitlement:

    com.apple.security.temporary-exception.files.absolute-path.read-only - /private/var/log/asl/

    I need this so I can use the asl_new, asl_set_query, asl_search, aslresponse_next, asl_get, and aslresponse_free to be able to get the log messages for my application when people submit a bug report.

    The app store rejection told me that I need to "investigate other ways of implementing the desired functionality".

    Are there other ways of getting at the console log entries for my app so I can get them sent to me with bug reports?

    Regards

    Gideon
  • Not sure if this meets sandboxing requirements, but you can redirect the console log in main.c:

    freopen([APP_LOG_PATH fileSystemRepresentation], "a", stderr);

    Surround this in @autoreleasepool{} if you need ARC memory management to create your path string.

    On 2013-05-30, at 5:46 PM, Gideon King <gideon...> wrote:

    > Hi,
    >
    > My app was rejected from the store because I wanted the entitlement:
    >
    > com.apple.security.temporary-exception.files.absolute-path.read-only - /private/var/log/asl/
    >
    > I need this so I can use the asl_new, asl_set_query, asl_search, aslresponse_next, asl_get, and aslresponse_free to be able to get the log messages for my application when people submit a bug report.
    >
    > The app store rejection told me that I need to "investigate other ways of implementing the desired functionality".
    >
    > Are there other ways of getting at the console log entries for my app so I can get them sent to me with bug reports?
    >
    >
    > Regards
    >
    > Gideon
previous month may 2013 next month
MTWTFSS
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    
Go to today