mcatan 2004/08/03 22:29:26
Modified: src xmllayout.cpp xmlsocketappender.cpp
Log:
the XMLSocketAppender locationinfo can now be set to "true" in order to log
file and line in Chainsaw
Revision Changes Path
1.15 +1 -1 logging-log4cxx/src/xmllayout.cpp
Index: xmllayout.cpp
===================================================================
RCS file: /home/cvs/logging-log4cxx/src/xmllayout.cpp,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- xmllayout.cpp 24 Apr 2004 07:51:58 -0000 1.14
+++ xmllayout.cpp 4 Aug 2004 05:29:26 -0000 1.15
@@ -99,7 +99,7 @@
if(locationInfo)
{
USES_CONVERSION;
- output << _T("<log4j:locationInfo file=\"");
+ output << _T("<log4j:locationInfo class=\"\" method=\"\"
file=\"");
output << A2T(event->getFile());
output << _T("\" line=\"");
output << event->getLine();
1.8 +2 -0 logging-log4cxx/src/xmlsocketappender.cpp
Index: xmlsocketappender.cpp
===================================================================
RCS file: /home/cvs/logging-log4cxx/src/xmlsocketappender.cpp,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- xmlsocketappender.cpp 22 Apr 2004 21:21:34 -0000 1.7
+++ xmlsocketappender.cpp 4 Aug 2004 05:29:26 -0000 1.8
@@ -91,6 +91,8 @@
else if (StringHelper::equalsIgnoreCase(option, _T("locationinfo")))
{
setLocationInfo(OptionConverter::toBoolean(value, false));
+ XMLLayoutPtr xmlLayout = layout;
+ xmlLayout->setLocationInfo(locationInfo);
}
else if (StringHelper::equalsIgnoreCase(option,
_T("reconnectiondelay")))
{