Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13976
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:

SetStdLog(LOG_CERR);


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
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: virtual void Ctrl::PaintOver(Draw& w) new method
Next Topic: Assertion failed....
Goto Forum:
  


Current Time: Thu May 09 16:42:53 CEST 2024

Total time taken to generate the page: 0.01320 seconds