/[resiprocate]/main/rutil/test/TestSubsystemLogLevel.hxx
ViewVC logotype

Contents of /main/rutil/test/TestSubsystemLogLevel.hxx

Parent Directory Parent Directory | Revision Log Revision Log


Revision 7109 - (show annotations) (download)
Fri May 11 08:41:09 2007 UTC (12 years, 6 months ago) by derek
File size: 154 byte(s)
added capability to set specific log level for a subsystem. 

Use Log::level, not the direct method on the Subsystem. See testLogger for detailed usage.

Also changed Log::Guard to not copy subsytem; it looks like this was resulting in a data copy every log statement. With the new per susbsytem log level, this could result in a lost log mesage, if Subsystem:getLevel is not atomic. Seems worth the risk to avoid the copy.
1 #ifndef TestSubsystemLogLevel_hxx
2 #define TestSubsystemLogLevel_hxx
3
4 class Noisy
5 {
6 public:
7 static void outputLogMessages();
8 };
9
10
11 #endif

webmaster AT resiprocate DOT org
ViewVC Help
Powered by ViewVC 1.1.27