Re: /Library/Logs vs. user/Library/Logs
Re: /Library/Logs vs. user/Library/Logs
- Subject: Re: /Library/Logs vs. user/Library/Logs
- From: Kiel Gillard <email@hidden>
- Date: Thu, 23 Oct 2008 16:44:19 +1100
Hi Chris and welcome to Mac OS X development,
The only helpful suggestion I can think of is to have a read of the
following document: <http://developer.apple.com/documentation/Cocoa/Conceptual/LowLevelFileMgmt/Tasks/LocatingDirectories.html
>
It *may* help you determine where you want to store your log files. My
two cents would be to put log files in the ~/Library/Logs folder. The
user running your application is more likely to have permission to
write files in that folder.
Good luck,
Kiel
On 23/10/2008, at 4:34 PM, Chris Markle wrote:
New to OS X development here... I see some things log to /Library/Logs
and others to user/Library/Logs (user=an individual account). I'm
thinking my app, which is a user-oriented app (not a system app) would
log to the user-specific location. Unless it's bad form to log there
and there is some other, more acceptable, best practice with respect
to log file location. So... is there a best practice? Is is documented
anywhere in Apple doc? Where should I go to read about accepted usage
of the /Library and user/Library directories and the files therein?
Thanks in advance. Chris
_______________________________________________
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