If you are building an application that uses the Qt library, LobTraceStream provides an additional class LobTraceStreamQt which eases the tracing of the most common Qt classes.
LobTraceStreamQt overrides LobTraceStream.
To enable Qt tracing,
QStringList mySList; [...] LOB_TRACE(EX5DLG, DEBUG) << "mySList = " << mySList << lt_endl;
will generate the following output:
1-dec-2002 23:35:41 TRACE EX5DLG: "mySList = {{string_1}{string_2}{string_3}}" [example5Dlg.cpp:76]
or in XML format:
<LobTrace module="EX5DLG" level="TRACE" date=" 1-dec-2002 23:34:39" line="76" file="example5Dlg.cpp"> <text>QStringList m_stringlist = </text> <QStringList count="3"> <string>string_1</string> <string>string_2</string> <string>string_3</string> </QStringList> </LobTrace>