You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4cxx-dev@logging.apache.org by ca...@apache.org on 2008/07/15 23:04:10 UTC
svn commit: r677038 - in /logging/log4cxx/trunk/src: changes/changes.xml
main/cpp/consoleappender.cpp
Author: carnold
Date: Tue Jul 15 14:04:10 2008
New Revision: 677038
URL: http://svn.apache.org/viewvc?rev=677038&view=rev
Log:
LOGCXX-304: BasicConfigurator::configure results in writer not set warning
Modified:
logging/log4cxx/trunk/src/changes/changes.xml
logging/log4cxx/trunk/src/main/cpp/consoleappender.cpp
Modified: logging/log4cxx/trunk/src/changes/changes.xml
URL: http://svn.apache.org/viewvc/logging/log4cxx/trunk/src/changes/changes.xml?rev=677038&r1=677037&r2=677038&view=diff
==============================================================================
--- logging/log4cxx/trunk/src/changes/changes.xml (original)
+++ logging/log4cxx/trunk/src/changes/changes.xml Tue Jul 15 14:04:10 2008
@@ -47,6 +47,7 @@
<action issue="LOGCXX-291">Tab characters are not recognized in property files.<action>
<action issue="LOGCXX-292">Value continuation does not properly handle CRLF in property files.<action>
<action issue="LOGCXX-293">Escape sequences not recognized in property files.<action>
+<action issue="LOGCXX-304">BasicConfigurator::configure results in writer not set warning.</action>
</release>
<release version="0.10.0" date="2008-04-03" description="First Apache release">
<action issue="LOGCXX-2">logger.h includes config.h</action>
Modified: logging/log4cxx/trunk/src/main/cpp/consoleappender.cpp
URL: http://svn.apache.org/viewvc/logging/log4cxx/trunk/src/main/cpp/consoleappender.cpp?rev=677038&r1=677037&r2=677038&view=diff
==============================================================================
--- logging/log4cxx/trunk/src/main/cpp/consoleappender.cpp (original)
+++ logging/log4cxx/trunk/src/main/cpp/consoleappender.cpp Tue Jul 15 14:04:10 2008
@@ -37,6 +37,8 @@
{
setLayout(layout1);
Pool p;
+ WriterPtr writer1(new SystemOutWriter());
+ setWriter(writer1);
WriterAppender::activateOptions(p);
}
@@ -44,9 +46,8 @@
: target(target1)
{
setLayout(layout1);
- LogString v = StringHelper::trim(target1);
Pool p;
- WriterAppender::activateOptions(p);
+ ConsoleAppender::activateOptions(p);
}
ConsoleAppender::~ConsoleAppender()