Re: Missing log output
Re: Missing log output
- Subject: Re: Missing log output
- From: Alex Zavatone via Cocoa-dev <email@hidden>
- Date: Mon, 9 Nov 2020 17:09:42 -0600
I did something super simple in iOS a few years ago.
It simply logged to a file in the Documents directory and if there were more
than n lines, it would trim the log.
Then emailing the log was as simple as issuing a mailto: which opened the log
up in the user’s emailer with a title.
This also allowed me to build a QA screen where I could enable tests and look
at states of important objects in the running app.
I can send you the code if you want once I find it.
Let me know.
Alex Zavatone
> On Nov 9, 2020, at 3:23 PM, Gabriel Zachmann via Cocoa-dev
> <email@hidden> wrote:
>
>
>> At any rate, it's good to plan ahead and use a different logging mechanism,
>> one without all the complications and unknowns of the system log.
>
> Yes, I agree.
>
> I was thinking of implementing a way such that users can just click on kind
> of a "Send Log" button, and my app would filter out all the log info from,
> err ..., the system log
> and send it as an attachment with an email to me.
>
> Would there be an easy / fail-safe way to filter out all the lines in the
> system log that pertain to my app?
>
> Best regards, Gabriel
>
>
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden