GammaWare  Head Version for release 0.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
void LogMessage::SetProcessMethod ( const char *  method)
virtual

To set the current method.

Using this method one can use indentation. After being cleared the message starts with not indentation. Once SetProcessMethod is called, a ticket is open start with the line which means ticket #5, state |info,verbose=0| open for ProcessName TestLOG_3 into ProcessMethod ToLog_3, corresponding to address 0x7fff5fbd9f28

[+[#5] |i,0| TestLOG_3::ToLog_3 : 0x7fff5fbd9f28 ]

Each time a SetProcessMethod is called, the indentation is increased ... while a call of dolog decreases it. Once the log ticket is closed (same number of calls of SetProcessMethod / dolog), the message is sent to the central log. Using this, the ouput reflects the successive calls of methods inside methods. See for instance:

[+[#5] |i,0| TestLOG_3::ToLog_3 : 0x7fff5fbd9f28 ]
[ -> ::ToLog_2 ]
[ -> ::ToLog_1 ]
[ -> ::ToLog_0 ]
0 set to 0
|E,0|
1 cannot be set to 1
|w,1|
2 cannot be set to 2
|i,0|
3 cannot be set to 3
[-[#5] TestLOG_3::ToLog_3 : 0x7fff5fbd9f28 ]

which is part of the output of the demos macro TestLOG.C

Definition at line 171 of file ADFLogMessage.cpp.