• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Missing log output
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Missing log output
      • From: Alex Zavatone via Cocoa-dev <email@hidden>
References: 
 >Re: Missing log output (From: Gabriel Zachmann via Cocoa-dev <email@hidden>)

  • Prev by Date: Re: Missing log output
  • Next by Date: Re: Missing log output
  • Previous by thread: Re: Missing log output
  • Next by thread: Re: Missing log output
  • Index(es):
    • Date
    • Thread