[Development] (long) thoughts on categorized logging (qLog)
BRM
bm_witness at yahoo.com
Fri Feb 24 16:00:08 CET 2012
> From: Lincoln Ramsay <lincoln.ramsay at nokia.com>
> On 02/23/2012 09:48 PM, ext David Faure wrote:
>>> # write output to a file (in the user's home directory)
>>> logging.output.file = file.txt
>>
>> I suppose Windows users would expect relative paths to be "in the CWD,
> which
>> is usually the executable's directory"? Not sure.
>
> That doesn't work when an unprivileged user runs an installed app
> because they don't have permission to write to Program Files.
>
> If a relative path is going to cause problems then I'm happy to require
> absolute paths :)
well, it probably shouldn't be in CWD regardless of platform.
On Windows, I'd suggest %APPDATA%\<program name> or at minimum %APPDATA%.
You might even get away with using %TEMP%; but it'd be harder to find the log then.
On other platforms, something under ${HOME} .
Ben
More information about the Development
mailing list