On Aug 8, 2013, at 3:34 PM, Caroline Tice <cmt...@google.com> wrote: > On Thu, Aug 8, 2013 at 3:26 PM, Mike Stump <mikest...@comcast.net> wrote: >> On Aug 8, 2013, at 3:09 PM, Caroline Tice <cmt...@google.com> wrote: >>> This patch changes where the logging file mechanism in libvtv tries to >>> write its log files. Instead of trying to use /tmp, it now first >>> looks for an environment variable "VTV_LOGS_DIR". If it can't find >>> that it looks for the environment variable "HOME". >> >> Hum… I kinda don't think HOME should be used. > > Why not?
Cause it violates a rather nice standard that spans decades for no compelling reason. http://en.wikipedia.org/wiki/Home_directory In the longer run, if linux/posix standardizes per-program logs for the user, then it can be squirted out there. On darwin for example, it would be ~/Library/Logs/<argv[0]>. These sorts of locations can feature things like, automated reporting, cleaning, compressing, rotation and so on… $HOME does not. Also, the user might have his files, with those names, and you would not want to just stomp on them.