>
> well, it probably shouldn't be in CWD regardless of platform.

Agreed, unless you're specifying the log file via a command line parameter

>
>
> 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} .
>

I don't recommend using the temp path on windows, it usually contains hundreds 
of files. (and is inside appdata\local by default)
The appdata area is organized by application, however it is a hidden folder.
There's also the local/roaming split for appdata which isn't obvious for cross 
platform developers.
The intent of appdata seems to be data that belongs to the application rather 
than the user (e.g. settings, persistent data)

As logging is mainly for developers, using QDir::homePath() as the default 
everywhere might be ok.

________________________________
Subject to local law, communications with Accenture and its affiliates 
including telephone calls and emails (including content), may be monitored by 
our systems for the purposes of security and the assessment of internal 
compliance with Accenture policy.
______________________________________________________________________________________

www.accenture.com

_______________________________________________
Development mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to