[Development] (long) thoughts on categorized logging (qLog)

shane.kearns at accenture.com shane.kearns at accenture.com
Fri Feb 24 16:46:16 CET 2012

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


More information about the Development mailing list