carnold | 4 Mar 2006 05:51
Picon
Favicon

svn commit: r383035 - in /logging/log4cxx/trunk: build.xml examples/console.cpp

Author: carnold
Date: Fri Mar  3 20:51:23 2006
New Revision: 383035

URL: http://svn.apache.org/viewcvs?rev=383035&view=rev
Log:
Bug LOGCXX-126: console example testing interaction of C RTL, STL and log4cxx output.

Added:
    logging/log4cxx/trunk/examples/console.cpp   (with props)
Modified:
    logging/log4cxx/trunk/build.xml

Modified: logging/log4cxx/trunk/build.xml
URL: http://svn.apache.org/viewcvs/logging/log4cxx/trunk/build.xml?rev=383035&r1=383034&r2=383035&view=diff
==============================================================================
--- logging/log4cxx/trunk/build.xml (original)
+++ logging/log4cxx/trunk/build.xml Fri Mar  3 20:51:23 2006
 <at>  <at>  -734,6 +734,14  <at>  <at> 
     </antcall>
 </target>

+<target name="build-console" depends="build">
+    <antcall target="build-example">
+       <param name="example.src.dir" value="${examples.dir}"/>
+       <param name="example.name" value="console"/>
+       <param name="example.includes" value="console.cpp"/>
+    </antcall>
+</target>
+
(Continue reading)

carnold | 6 Mar 2006 22:46
Picon
Favicon

svn commit: r383683 - in /logging/log4cxx/trunk: examples/Makefile.am src/systemerrwriter.cpp src/systemoutwriter.cpp

Author: carnold
Date: Mon Mar  6 13:46:04 2006
New Revision: 383683

URL: http://svn.apache.org/viewcvs?rev=383683&view=rev
Log:
LOGCXX-126: ConsoleAppender now checks fwide and uses C STL IO

Modified:
    logging/log4cxx/trunk/examples/Makefile.am
    logging/log4cxx/trunk/src/systemerrwriter.cpp
    logging/log4cxx/trunk/src/systemoutwriter.cpp

Modified: logging/log4cxx/trunk/examples/Makefile.am
URL: http://svn.apache.org/viewcvs/logging/log4cxx/trunk/examples/Makefile.am?rev=383683&r1=383682&r2=383683&view=diff
==============================================================================
--- logging/log4cxx/trunk/examples/Makefile.am (original)
+++ logging/log4cxx/trunk/examples/Makefile.am Mon Mar  6 13:46:04 2006
 <at>  <at>  -1,4 +1,4  <at>  <at> 
-noinst_PROGRAMS = trivial delayedloop stream
+noinst_PROGRAMS = trivial delayedloop stream console

 INCLUDES = -I$(top_srcdir)/include -I$(top_builddir)/include

 <at>  <at>  -11,5 +11,7  <at>  <at> 
 stream_SOURCES = stream.cpp
 stream_LDADD = $(top_builddir)/src/liblog4cxx.la

+console_SOURCES = console.cpp
+console_LDADD = $(top_builddir)/src/liblog4cxx.la
(Continue reading)

carnold | 7 Mar 2006 07:51
Picon
Favicon

svn commit: r383802 - in /logging/log4cxx/trunk: examples/ include/log4cxx/helpers/ include/log4cxx/xml/ simplesocketserver/ src/ tests/src/ tests/src/customlogger/ tests/src/defaultinit/ tests/src/varia/ tests/src/xml/

Author: carnold
Date: Mon Mar  6 22:51:03 2006
New Revision: 383802

URL: http://svn.apache.org/viewcvs?rev=383802&view=rev
Log:
Bug LOGCXX-35: Migrate from msxml/libxml2 to apr_xml_parse

Removed:
    logging/log4cxx/trunk/include/log4cxx/helpers/gnomexml.h
    logging/log4cxx/trunk/include/log4cxx/helpers/msxml.h
    logging/log4cxx/trunk/src/gnomexml.cpp
    logging/log4cxx/trunk/src/msxml.cpp
Modified:
    logging/log4cxx/trunk/examples/delayedloop.cpp
    logging/log4cxx/trunk/include/log4cxx/helpers/charsetdecoder.h
    logging/log4cxx/trunk/include/log4cxx/xml/domconfigurator.h
    logging/log4cxx/trunk/simplesocketserver/simplesocketserver.cpp
    logging/log4cxx/trunk/src/Makefile.am
    logging/log4cxx/trunk/src/charsetdecoder.cpp
    logging/log4cxx/trunk/src/domconfigurator.cpp
    logging/log4cxx/trunk/src/optionconverter.cpp
    logging/log4cxx/trunk/tests/src/customlogger/xloggertestcase.cpp
    logging/log4cxx/trunk/tests/src/defaultinit/testcase2.cpp
    logging/log4cxx/trunk/tests/src/defaultinit/testcase4.cpp
    logging/log4cxx/trunk/tests/src/main.cpp
    logging/log4cxx/trunk/tests/src/varia/errorhandlertestcase.cpp
    logging/log4cxx/trunk/tests/src/xml/customleveltestcase.cpp
    logging/log4cxx/trunk/tests/src/xml/domtestcase.cpp

(Continue reading)

carnold | 7 Mar 2006 08:10
Picon
Favicon

svn commit: r383809 - in /logging/log4cxx/trunk/src: systemerrwriter.cpp systemoutwriter.cpp

Author: carnold
Date: Mon Mar  6 23:10:10 2006
New Revision: 383809

URL: http://svn.apache.org/viewcvs?rev=383809&view=rev
Log:
Bug LOGCXX-126: ConsoleAppender always uses fputws with MSVC

Modified:
    logging/log4cxx/trunk/src/systemerrwriter.cpp
    logging/log4cxx/trunk/src/systemoutwriter.cpp

Modified: logging/log4cxx/trunk/src/systemerrwriter.cpp
URL: http://svn.apache.org/viewcvs/logging/log4cxx/trunk/src/systemerrwriter.cpp?rev=383809&r1=383808&r2=383809&view=diff
==============================================================================
--- logging/log4cxx/trunk/src/systemerrwriter.cpp (original)
+++ logging/log4cxx/trunk/src/systemerrwriter.cpp Mon Mar  6 23:10:10 2006
 <at>  <at>  -37,7 +37,14  <at>  <at> 

 void SystemErrWriter::write(const LogString& str, Pool& p) {
 #if LOG4CXX_HAS_WCHAR_T
+#if defined(_MSC_VER)
+    //  MSC_VER has fwide, but since all supported versions
+    //   allow intermixing of wide and byte output
+    //   use wide to support widest range of languages
+    if (true) {
+#else
     if (fwide(stderr, 0) > 0) {
+#endif
     	LOG4CXX_ENCODE_WCHAR(msg, str);
(Continue reading)

carnold | 7 Mar 2006 08:36
Picon
Favicon

svn commit: r383813 - in /logging/log4cxx/trunk: include/log4cxx/private/log4cxx_private.hw src/systemerrwriter.cpp src/systemoutwriter.cpp

Author: carnold
Date: Mon Mar  6 23:36:01 2006
New Revision: 383813

URL: http://svn.apache.org/viewcvs?rev=383813&view=rev
Log:
Bug LOGCXX-126: ConsoleAppender uses fputws when LOG4CXX_FORCE_WIDE_CONSOLE is true

Modified:
    logging/log4cxx/trunk/include/log4cxx/private/log4cxx_private.hw
    logging/log4cxx/trunk/src/systemerrwriter.cpp
    logging/log4cxx/trunk/src/systemoutwriter.cpp

Modified: logging/log4cxx/trunk/include/log4cxx/private/log4cxx_private.hw
URL: http://svn.apache.org/viewcvs/logging/log4cxx/trunk/include/log4cxx/private/log4cxx_private.hw?rev=383813&r1=383812&r2=383813&view=diff
==============================================================================
--- logging/log4cxx/trunk/include/log4cxx/private/log4cxx_private.hw (original)
+++ logging/log4cxx/trunk/include/log4cxx/private/log4cxx_private.hw Mon Mar  6 23:36:01 2006
 <at>  <at>  -55,6 +55,7  <at>  <at> 

 #define LOG4CXX_HAS_STD_WCOUT 1
 #define LOG4CXX_HAS_STD_WLOCALE 1
+#define LOG4CXX_FORCE_WIDE_CONSOLE 1

 #if defined(LOG4CXX_STATIC)
 #define LOG4CXX_EXPORT

Modified: logging/log4cxx/trunk/src/systemerrwriter.cpp
URL: http://svn.apache.org/viewcvs/logging/log4cxx/trunk/src/systemerrwriter.cpp?rev=383813&r1=383812&r2=383813&view=diff
==============================================================================
(Continue reading)

carnold | 7 Mar 2006 09:07
Picon
Favicon

svn commit: r383818 - in /logging/log4cxx/trunk: build.xml src/domconfigurator.cpp

Author: carnold
Date: Tue Mar  7 00:07:23 2006
New Revision: 383818

URL: http://svn.apache.org/viewcvs?rev=383818&view=rev
Log:
Bug LOGCXX-35: Linux compilation fixes

Modified:
    logging/log4cxx/trunk/build.xml
    logging/log4cxx/trunk/src/domconfigurator.cpp

Modified: logging/log4cxx/trunk/build.xml
URL: http://svn.apache.org/viewcvs/logging/log4cxx/trunk/build.xml?rev=383818&r1=383817&r2=383818&view=diff
==============================================================================
--- logging/log4cxx/trunk/build.xml (original)
+++ logging/log4cxx/trunk/build.xml Tue Mar  7 00:07:23 2006
 <at>  <at>  -6,7 +6,7  <at>  <at> 
         <libset libs="${apr.lib.name}${lib-suffix}" dir="${apr.lib.dir}" if="apr.lib.dir"/>
         <libset libs="${apr.lib.name}${lib-suffix}" unless="apr.lib.dir"/>
         <libset libs="iconv" if="has-iconv"/>
-        <libset libs="xml2 pthread" if="is-unix"/>
+        <libset libs="pthread" if="is-unix"/>
         <libset libs="expat" if="has-expat"/>
         <libset libs="advapi32 odbc32 ws2_32 mswsock" if="is-windows"/>
         <libset libs="stdc++" if="is-gcc"/>
 <at>  <at>  -656,7 +656,6  <at>  <at> 
         <fileset dir="${src.dir}" includes="*.cpp" excludes="**/iconv_module.cpp"/>
         <fileset dir="${include.dir}" includes="**/*.h"/>
         <includepath path="${include.dir}"/>
(Continue reading)

afester | 8 Mar 2006 18:14
Picon
Favicon

svn commit: r384272 - in /logging/log4cxx/trunk/include/log4cxx: helpers/unicodehelper.h xml/domconfigurator.h

Author: afester
Date: Wed Mar  8 09:14:28 2006
New Revision: 384272

URL: http://svn.apache.org/viewcvs?rev=384272&view=rev
Log:
LOGCXX-130: removed extra class qualifications

Modified:
    logging/log4cxx/trunk/include/log4cxx/helpers/unicodehelper.h
    logging/log4cxx/trunk/include/log4cxx/xml/domconfigurator.h

Modified: logging/log4cxx/trunk/include/log4cxx/helpers/unicodehelper.h
URL: http://svn.apache.org/viewcvs/logging/log4cxx/trunk/include/log4cxx/helpers/unicodehelper.h?rev=384272&r1=384271&r2=384272&view=diff
==============================================================================
--- logging/log4cxx/trunk/include/log4cxx/helpers/unicodehelper.h (original)
+++ logging/log4cxx/trunk/include/log4cxx/helpers/unicodehelper.h Wed Mar  8 09:14:28 2006
 <at>  <at>  -95,7 +95,7  <at>  <at> 
             *    <at> param ch wchar_t value
             *    <at> return number of bytes required.
             */
-              static int UnicodeHelper::lengthUTF8(wchar_t ch);
+              static int lengthUTF8(wchar_t ch);

 #endif

Modified: logging/log4cxx/trunk/include/log4cxx/xml/domconfigurator.h
URL: http://svn.apache.org/viewcvs/logging/log4cxx/trunk/include/log4cxx/xml/domconfigurator.h?rev=384272&r1=384271&r2=384272&view=diff
==============================================================================
--- logging/log4cxx/trunk/include/log4cxx/xml/domconfigurator.h (original)
(Continue reading)

Andreas Fester | 8 Mar 2006 18:22
Picon
Favicon

Re: Compilation error (0.9.8, 7-Mar-2006 trunk version)

Bug report created, patch applied and committed :-)

Thanks,

	Andreas

Efri Nattel-Shay wrote:
> When compiling 0.9.8 on a Linux FC5 machine, (g++ version 4.1), I'm
> getting two of the following errors.
> An svn diff of the interface without the extra qualification, that
> passes compilation and check, is attached.
[...]

Andreas Fester | 8 Mar 2006 20:34
Picon
Favicon

Re: Intended commits for L7dTestCase (LOGCXX-125)

Ok, I would like to retry this one ;-)

I added an InputStreamReader to split the reader and stream
hierarchy. The classes should now be similar to java.
InputStreamReader converts from char to LogString.

Thanks,

	Andreas

On Jan 30, 2006, at 9:12 AM, Andreas Fester wrote:

> This patch fixes the localized logging which was still #if 0'ed out.
>
> To read the resource files, a FileInputStream class was added.
> This aligns the class structure better with the java world,
> instead of having read/write methods directly on the File class.
>

log4cxx::InputStream and log4cxx::FileInputStream in the patch work
on characters and are therefore really aligned with java.io.Reader
and java.io.FileReader, not their java.io namesakes.  If there is to
be a log4cxx::InputStream its methods should be using
std::vector<unsigned char> instead of LogString.

I'd support either simply renaming the InputStream and
FileInputStream classes to Reader and FileReader and accepting the
patch as a basis for further work or let you try to split out the raw
byte-level IO classes from the character based classes.

(Continue reading)

Curt Arnold | 8 Mar 2006 22:14
Picon
Favicon

Re: Intended commits for L7dTestCase (LOGCXX-125)


On Mar 8, 2006, at 1:34 PM, Andreas Fester wrote:

> Ok, I would like to retry this one ;-)
>
> I added an InputStreamReader to split the reader and stream
> hierarchy. The classes should now be similar to java.
> InputStreamReader converts from char to LogString.
>
> Thanks,
>
> 	Andreas

Go ahead and commit what you have and will review after commit.


Gmane