PDA

View Full Version : Cross Platform Logging



skyphyr
23rd November 2006, 13:53
Hi All,

I want to have my debug output go to a log using QtMsgHandler. Ideally I'd like it to integrate with metalog/syslog etc on linux, and whatever the relevant alternative is for windows and OS X.

I haven't yet found an option for it, failing integration with loggers than being able to select a path for each OS without user interaction would be ideal, but I don't want it to be the path of the executable as this will default to /usr/bin on linux.

Cheers,

Alan.

wysota
23rd November 2006, 15:28
Try log4cpp (http://log4cpp.sourceforge.net).

skyphyr
23rd November 2006, 17:32
Hi wysota,

Thanks very much - I'll take a look.

Cheers,

Alan.