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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/kiel.gillard%40gmail.com

This email sent to [EMAIL PROTECTED]

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/neil%40voidfx.net

This email sent to [EMAIL PROTECTED]


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to