Home » U++ Library support » U++ Core » How to redirect LLOG to stderr?
|
Re: How to redirect LLOG to stderr? [message #30910 is a reply to message #30886] |
Fri, 28 January 2011 10:25 |
|
mirek
Messages: 13975 Registered: November 2005
|
Ultimate Member |
|
|
First of all, I hope you are aware that LLOG is a very simple trick to limit LOG for single file. Where LLOG is used, there is usually a line
#define LLOG(x) // LOG(x)
at the start of file. Remove "//" and you get logging for that specific file.
(There are also some other L* macros in some files, but LLOG is the most prevalent).
Now to the question, you can redirect U++ standard log to stderr:
There are more options: LOG_FILE, LOG_COUT, LOG_CERR, LOG_DBG, LOG_TIMESTAMP and they can be used simultaneouslu (but LOG_DBG only works in Win32, in POSIX it is the same as LOG_CERR).
Standard setting is LOG_FILE. BTW, I wonder why it does not work for you - IMO it is the least requiring.
Mirek
|
|
|
|
|
|
Goto Forum:
Current Time: Thu Mar 28 11:08:02 CET 2024
Total time taken to generate the page: 0.02192 seconds
|