Re: /Library/Logs vs. user/Library/Logs
Re: /Library/Logs vs. user/Library/Logs
- Subject: Re: /Library/Logs vs. user/Library/Logs
- From: Neil <email@hidden>
- Date: Thu, 23 Oct 2008 01:53:40 -0400
I'm inclined to go with ~/Library/Logs as well. As a user, I tend to
be annoyed by apps that drop files outside of my home directory.
And please don't take the route of putting logs in ~/Documents, as a
some programs do (though I suspect your app isn't writing those sort
of logs).
There is also one other alternative you might consider: ~/Library/
Application Support/<app_name>/* . It all depends on the sort of log,
intended use, length of keep, size, etc...
-Neil.
On 23 Oct 2008, at 01:44, Kiel Gillard wrote:
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
_______________________________________________
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