Re: /Library/Logs vs. user/Library/Logs
Re: /Library/Logs vs. user/Library/Logs
- Subject: Re: /Library/Logs vs. user/Library/Logs
- From: "Chris Markle" <email@hidden>
- Date: Thu, 23 Oct 2008 13:27:46 -0700
Thanks guys. Good advice. Here's my summary of what you guys said:
1. Document to read: Low-Level File Management Programming Topics:
Locating Directories on the System
(http://developer.apple.com/documentation/Cocoa/Conceptual/LowLevelFileMgmt/Tasks/LocatingDirectories.html)
2. Putting logs into the ~/Library/Logs folder is a good choice. The
user running the application is more likely to have permission to
write files in that folder. People may be annoyed if apps drop files
outside of the user's home directory.
3. Don't put logs in ~/Documents, as a some programs do.
4. One could consider as well: ~/Library/Application
Support/<app_name>/* . It all depends on the sort of log, intended
use, length of keep, size, etc... (On my system, the files in here
look to be more like DB's, etc. as opposed to something transient like
a log file; moreover, ~/Library/Logs looks to be used specifically for
this purpose by some number of apps on my system.) Still, it's worth
noting the existence of this other directory.
Thanks again.
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