<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel about="http://blog.gmane.org/gmane.comp.apache.logging.log4cxx.user">
    <title>gmane.comp.apache.logging.log4cxx.user</title>
    <link>http://blog.gmane.org/gmane.comp.apache.logging.log4cxx.user</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.apache.logging.log4cxx.user/2523"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.apache.logging.log4cxx.user/2521"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.apache.logging.log4cxx.user/2516"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.apache.logging.log4cxx.user/2510"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.apache.logging.log4cxx.user/2507"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.apache.logging.log4cxx.user/2502"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.apache.logging.log4cxx.user/2493"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.apache.logging.log4cxx.user/2490"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.apache.logging.log4cxx.user/2473"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.apache.logging.log4cxx.user/2472"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.apache.logging.log4cxx.user/2471"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.apache.logging.log4cxx.user/2467"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.apache.logging.log4cxx.user/2465"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.apache.logging.log4cxx.user/2453"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.apache.logging.log4cxx.user/2451"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.apache.logging.log4cxx.user/2450"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.apache.logging.log4cxx.user/2448"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.apache.logging.log4cxx.user/2447"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.apache.logging.log4cxx.user/2445"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.apache.logging.log4cxx.user/2444"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://comments.gmane.org/gmane.comp.apache.logging.log4cxx.user/2523">
    <title>Does TimeBasedRollingPolicy work with MaxBackupIndex?</title>
    <link>http://comments.gmane.org/gmane.comp.apache.logging.log4cxx.user/2523</link>
    <description>
I used TimeBasedRollingPolicy of RollingFileAppender to rollover log file
every minute. And at the same time I'd like to use MaxBackupIndex to set the
max number of backup files. But MaxBackupIndex does not work.
TimeBasedRollingPolicy cannot work with MaxBackupIndex or my configuration
file has some wrong? I attached my configuration:

&lt;?xml version="1.0" encoding="UTF-8" ?&gt; 
&lt;log4j:configuration xmlns:log4j='http://logging.apache.org/' debug="true"&gt;
  &lt;appender name="ROLLING"
class="org.apache.log4j.rolling.RollingFileAppender"&gt;
            &lt;rollingPolicy
class="org.apache.log4j.rolling.TimeBasedRollingPolicy"&gt;
              
            &lt;/rollingPolicy&gt;
    
    &lt;layout class="org.apache.log4j.PatternLayout"&gt;
      
    &lt;/layout&gt;
    
  &lt;/appender&gt;
  &lt;root&gt;
    &lt;level value="INFO"/&gt;
    &lt;appender-ref ref="ROLLING"/&gt;
  &lt;/root&gt;
&lt;/log4j:configuration&gt;
</description>
    <dc:creator>Jathy</dc:creator>
    <dc:date>2008-10-10T10:01:42</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.apache.logging.log4cxx.user/2521">
    <title>TimeBasedRollingPolicy does not work in RollingFileAppender</title>
    <link>http://comments.gmane.org/gmane.comp.apache.logging.log4cxx.user/2521</link>
    <description>
I used TimeBasedRollingPolicy to rollover log file every day but it did not
work. No files was generated. My configuration file is shown below,

&lt;?xml version="1.0" encoding="UTF-8" ?&gt; 
&lt;log4j:configuration xmlns:log4j='http://logging.apache.org/' debug="true"&gt;
  &lt;appender name="ROLLING"
class="org.apache.log4j.rolling.RollingFileAppender"&gt;
            &lt;rollingPolicy
class="org.apache.log4j.rolling.TimeBasedRollingPolicy"&gt;
              
              
            &lt;/rollingPolicy&gt;
    &lt;layout class="org.apache.log4j.PatternLayout"&gt;
      
    &lt;/layout&gt;
    
  &lt;/appender&gt;
  &lt;root&gt;
    &lt;level value="info"/&gt;
    &lt;appender-ref ref="ROLLING"/&gt;
  &lt;/root&gt;
&lt;/log4j:configuration&gt;

And in the code, I used the following codes to initialized the log4cxx:

string strXmlConfig = "logging.xml";
log4cxx::xml::DOMConfigurator::configure(strXmlConfig);
log4cxx::LoggerPtr pLogger = log4cxx::Logger::getRootLogger();

What's wrong about my configuration or codes? Thank you.
</description>
    <dc:creator>Jathy</dc:creator>
    <dc:date>2008-10-10T07:02:09</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.apache.logging.log4cxx.user/2516">
    <title>log4cxx 0.10 - make fails on Solaris 10</title>
    <link>http://comments.gmane.org/gmane.comp.apache.logging.log4cxx.user/2516</link>
    <description>Hello all,

I have download the source of log4cxx 0.10, and trying to build on Solaris
10 - Sparc 64 bit.

I have done configure correctly, and the makefile was generated.

Now when I do a "make", it gives me this error, and I do not know why it
looks for libdb-4.2. Is there any dependency? What are all the dependencies?
grep: can't open /usr/local/BerkeleyDB.4.2/lib/libdb-4.2.la


-bash-3.00$ make
Making all in src
make[1]: Entering directory
`/projects/installers/opensrc/apache-log4cxx-0.10.0/src'
Making all in main
make[2]: Entering directory
`/projects/installers/opensrc/apache-log4cxx-0.10.0/src/main'
Making all in cpp
make[3]: Entering directory
`/projects/installers/opensrc/apache-log4cxx-0.10.0/src/main/cpp'
......
......
......

/bin/bash ../../../libtool --tag=CXX --mode=link g++  -g -O2
-L/usr/local/apr/lib -lapr-1 -luuid -lsendfile -lrt -lsocket -lnsl
-lpthread  -L/usr/local/apr/lib -laprutil-1 -lgdbm -ldb-4.2 -lexpat -liconv
-o liblog4cxx.la -rpath /projects/usr/local/lib -version-info 10:0:0  -</description>
    <dc:creator>Ambarish Mitra</dc:creator>
    <dc:date>2008-09-30T12:52:40</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.apache.logging.log4cxx.user/2510">
    <title>3 files as a targets.</title>
    <link>http://comments.gmane.org/gmane.comp.apache.logging.log4cxx.user/2510</link>
    <description>
Dears,

Can anyone tell me how to prepare 3 rolling files in the program.
I have 3 sources of information and I want to store logs from them
in separated files. How can I do that?

Regards,
Seweryn Habdank-Wojewodzki.


</description>
    <dc:creator>Habdank-wojewodzki Seweryn</dc:creator>
    <dc:date>2008-09-29T12:21:53</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.apache.logging.log4cxx.user/2507">
    <title>log4cc not working as intended</title>
    <link>http://comments.gmane.org/gmane.comp.apache.logging.log4cxx.user/2507</link>
    <description>Dear mailing list,

I've tried to get log4cxx working under Visual studio 2008 and after
building the libs and dll it generally seemed two work. However after
some initial testing it does not:

1)  When running the steps on: http://logging.apache.org/log4cxx/index.html
I get the following result:

C:\Documents and Settings\Kevin1\My Documents\Visual Studio 2008\Projects\Test\D
ebug&gt;Test.exe
0 [0x000000e8] INFO MyApp null - Entering application.
0 [0x000000e8] DEBUG com.foo.bar null - Did it again!
0 [0x000000e8] INFO MyApp null - Exiting application.

C:\Documents and Settings\Kevin1\My Documents\Visual Studio 2008\Projects\Test\D
ebug&gt;Test.exe
0 [0x00000ec0] INFO MyApp null - Entering application.
0 [0x00000ec0] DEBUG com.foo.bar null - Did it again!
0 [0x00000ec0] INFO MyApp null - Exiting application.

instead of the expected:

0    [12345] INFO  MyApp  - Entering application.
36   [12345] DEBUG com.foo.Bar  - Did it again!
51   [12345] INFO  MyApp  - Exiting application.

2) when expanding the logging wi</description>
    <dc:creator>Wacht Woord</dc:creator>
    <dc:date>2008-09-26T21:57:35</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.apache.logging.log4cxx.user/2502">
    <title>TimeBased + SizeBased</title>
    <link>http://comments.gmane.org/gmane.comp.apache.logging.log4cxx.user/2502</link>
    <description>I am trying to implement logging to rolling files. I want rollover to
occur when the size reaches certain limit. At the same time I'd like
file name to include date stamp, so the result looks like:
 
MyLog.2008-09-08.log
MyLog.2008-09-08.1.log
MyLog.2008-09-08.2.log
... etc.
 
I started with log4cxx::RollingFileAppender, but it doesn't seem to
support FileName patterns.
Next, I tried log4cxx::rolling::RollingFileAppender with
TimeBasedRollingPolicy. This option does not allow rollover to be
triggered by file size.
Next, I tried log4cxx::rolling::RollingFileAppender with
TimeBasedRollingPolicy and SizeBasedTriggeringPolicy, but it seemed to
create a conflict because TimeBasedRollingPolicy also sets Triggering
policy for the appender.
 
What is the solution I am looking for?
 
Alex Rozenbaum
Consultant


Thomson Reuters 

Phone: 646-822-2821

alex.rosenbaum&lt; at &gt;thomsonreuters.com
thomsonreuters.com


 


This email was sent to you by Thomson Reuters, the global news and information company.
Any views expressed in </description>
    <dc:creator>Alex Rosenbaum</dc:creator>
    <dc:date>2008-09-25T19:54:19</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.apache.logging.log4cxx.user/2493">
    <title>log4cxxl compile fails</title>
    <link>http://comments.gmane.org/gmane.comp.apache.logging.log4cxx.user/2493</link>
    <description>Compiling log4cxx in Microsoft Visual Studio 6.0 fails and the first
error is below.  SQLLEN is not defined anywhere.  What am I doing wrong?
Thanks!
 
C:\apr-util\dbd\apr_dbd_odbc.c(134) : error C2061: syntax error :
identifier 'SQLLEN' 
 

 

---------------------------------------------

Don Winans

Software Engineer

 

NORTHROP GRUMMAN Mission Systems 

Defense Mission Systems

Communication and Information Systems Division

9326 Spectrum Center Blvd.

San Diego, CA 92123

858-514-9687

don.winans&lt; at &gt;ngc.com

 
</description>
    <dc:creator>Winans, Don (Mission Systems</dc:creator>
    <dc:date>2008-09-23T16:15:49</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.apache.logging.log4cxx.user/2490">
    <title>XMLSocketAppender: Reconnection fails</title>
    <link>http://comments.gmane.org/gmane.comp.apache.logging.log4cxx.user/2490</link>
    <description>Hi All,

for some reason, a XMLSocketAppender does not reconnect to
Chainsaw, after some initial events have been sent and then 
chainsaw was killed.

What I have figured out is that in the following code snippet
from SocketAppenderSkeleton.cpp

---------- schnipp ----------
void SocketAppenderSkeleton::fireConnector()
{
        synchronized sync(mutex);
        if (thread.isActive()) {
                thread.run(monitor, this);
        }
}
-------- schnapp ------------

the method thread.isActive always returns false. It seems that
the methods returns true if there is some (apr) thread object
instantiated. But that does not happen.

The same behaviour is shown when the connection cannot be established
at the beginning of a session.

Is that a known bug/feature?? I'am using log4cxx 0.10.0.

Cheers
  Stefan



</description>
    <dc:creator>Stefan.Borovac&lt; at &gt;t-online.de</dc:creator>
    <dc:date>2008-09-23T13:56:42</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.apache.logging.log4cxx.user/2473">
    <title>File system full causes log4cxx to crash</title>
    <link>http://comments.gmane.org/gmane.comp.apache.logging.log4cxx.user/2473</link>
    <description>We've experienced several cases of our logging volume becoming full
during the course of execution of our application. What we would like to
happen in this case is simply to lose any log further messages that are
written after the file system becomes full, but what happens instead is
log4cxx crashes and brings down our application. We're using the
RollingFileAppender on a Unix box. Is there some way to configure
log4cxx to behave a little less drastically in a case like this?
Ideally, the best behavior in a case like this would be for log4cxx to
delete the oldest backup log file and continue logging, but even simply
suspending logging would be better than a crash. Any suggestions?

 

</description>
    <dc:creator>Peter Steele</dc:creator>
    <dc:date>2008-09-19T18:46:05</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.apache.logging.log4cxx.user/2472">
    <title>[log4cxx-users] Singleton class causes segfault at termination</title>
    <link>http://comments.gmane.org/gmane.comp.apache.logging.log4cxx.user/2472</link>
    <description>Hello all,

I have developed a C++ class (a sort of singleton..) to allow the same 
instance of the logger to be used in several places. The code is shown 
at the end of the email message.
In main, I just do this:

int main()
{
  LOG4CXX_WARN(CLogger::GetLoggerInstance(), "hello");
  return 0;
}

and the program segfaults. Running it inside gdb yields this backtrace:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1219492160 (LWP 18963)]
0xb7aa6cfa in apr_pool_destroy () from /usr/lib/libapr-1.so.0
(gdb) bt
#0  0xb7aa6cfa in apr_pool_destroy () from /usr/lib/libapr-1.so.0
#1  0xb7e5e4f5 in ~Pool (this=0x805f234) at pool.cpp:46
#2  0xb7de7504 in ~AppenderSkeleton (this=0x805f200, 
__vtt_parm=0xb7f020e4) at 
../../../src/main/include/log4cxx/appenderskeleton.h:48
#3  0xb7e8540d in ~SyslogAppender (this=0x805f200) at syslogappender.cpp:93
#4  0xb7e4c6f5 in log4cxx::helpers::ObjectImpl::releaseRef 
(this=0x805f254) at objectimpl.cpp:46
#5  0xb7de0bc2 in log4cxx::AppenderSkeleton::rele</description>
    <dc:creator>Oscar Pereira</dc:creator>
    <dc:date>2008-09-19T16:53:00</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.apache.logging.log4cxx.user/2471">
    <title>Does log4cxx support MS Vista</title>
    <link>http://comments.gmane.org/gmane.comp.apache.logging.log4cxx.user/2471</link>
    <description>
Hi All,

Does log4cxx can run properly on Vista?
</description>
    <dc:creator>Jathy</dc:creator>
    <dc:date>2008-09-19T05:05:57</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.apache.logging.log4cxx.user/2467">
    <title>Initialization problem</title>
    <link>http://comments.gmane.org/gmane.comp.apache.logging.log4cxx.user/2467</link>
    <description>Hi,
I'm trying to use log4cxx for a project I'm working on. The problem is
when I try to load the logger as described in the tutorial like this:
        LoggerPtr
        GluePairUnitDlg::logger(Logger::getLogger("gluepairunitdlg"));

I get the following errors:

        gluepairunit.cpp:4: error: no matching function for call to
        'log4cxx::Logger::getLogger(const char [16])'
        /usr/include/log4cxx/logger.h:295: note: candidates are: static
        log4cxx::LoggerPtr log4cxx::Logger::getLogger(const
        log4cxx::String&amp;)
        /usr/include/log4cxx/logger.h:316: note: static
        log4cxx::LoggerPtr log4cxx::Logger::getLogger(const
        log4cxx::String&amp;, log4cxx::spi::LoggerFactoryPtr)

Now, If I change the loader for this:

        LoggerPtr
        GluePairUnitDlg::logger(Logger::getLogger(L"gluepairunitdlg"));

I get this error:
        
        gluepairunit.cpp:4: undefined reference to
        `log4cxx::Logger::getLogger(std::basic_string&lt;wchar_t,
        std::char_traits&lt;wchar_t&gt;</description>
    <dc:creator>Alexander Rojas</dc:creator>
    <dc:date>2008-09-17T10:35:22</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.apache.logging.log4cxx.user/2465">
    <title>Accessing a LoggingEvent's properties using a PatternLayout</title>
    <link>http://comments.gmane.org/gmane.comp.apache.logging.log4cxx.user/2465</link>
    <description>
Hello List,

I am trying to make use of the LoggingEvent's properties map so that my
logs contain extra data specific to an event. This is implemented in
log4net, so I didn't think I would run into any problems.

However, on further investigation, the documentation and the code both
suggest that there is no way to actually access the LoggingEvent's
properties using the PatternLayout's syntax.

Are the LoggingEvent's properties intended for this kind of use, or am I
going about this the wrong way?

Cheers,
Adam Woods


Disclaimer:
1. The contents of this email and its attachments are confidential and privileged. Any unauthorised use, or passing on, of the information to others who are not authorised is expressly prohibited. If you receive this email in error, please advise us and then delete the email with any attachments.

2. Before opening or using attachments, check them for viruses and defects. The contents of this email and its attachments may become scrambled, truncated or altered in transmission. Plea</description>
    <dc:creator>Adam Woods</dc:creator>
    <dc:date>2008-09-17T02:18:26</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.apache.logging.log4cxx.user/2453">
    <title>Forward Declaration</title>
    <link>http://comments.gmane.org/gmane.comp.apache.logging.log4cxx.user/2453</link>
    <description>Hello,

I'm wondering if it is possible to use forward declaration with log4cxx classes in a class header file. I would like to exclude the log4cxx headers files in my header files if possible and include the log4cxx header files in my cpp(source) files.

Should this work?

// Test.hpp
namespace log4cxx {
class LoggerPtr;
}

class Test {
private:
    static log4cxx:LoggerPtr    _logger;

public:
    Test();
};

//Test.cpp

#include &lt;log4cxx/logger.h&gt;

using namespace log4cxx;

LoggerPtr Test::_logger(Logger::getRootLogger());

Test::Test() {
}

// end test.cpp

Thanks,

-jd-



      </description>
    <dc:creator>Jon Dahl</dc:creator>
    <dc:date>2008-09-12T17:00:39</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.apache.logging.log4cxx.user/2451">
    <title>is this an in progress project?</title>
    <link>http://comments.gmane.org/gmane.comp.apache.logging.log4cxx.user/2451</link>
    <description>hi every body



i am a new user of log4cxx. i am enjoying it

till now, it is nice

but i have a question: 

"is this projest an open project?"

i mean is it still in progress.



thanks a lot

somayeh bakhshaei




      </description>
    <dc:creator>somayeh bakhshaei</dc:creator>
    <dc:date>2008-09-12T09:53:20</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.apache.logging.log4cxx.user/2450">
    <title>Client and server code for SocketAppender</title>
    <link>http://comments.gmane.org/gmane.comp.apache.logging.log4cxx.user/2450</link>
    <description>
Hi!

I am trying to use log4cxx with SocketAppender
or XMLsocketAppender, but I have a problem.

Where I could find manuals how to make
client and server side code for that kind of
connection. Especially sample code of servers
for log4cxx 0.9.7 are not valid anymore.

Regards,
Seweryn Habdank-Wojewodzki.


</description>
    <dc:creator>Habdank-wojewodzki Seweryn</dc:creator>
    <dc:date>2008-09-12T07:40:07</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.apache.logging.log4cxx.user/2448">
    <title>How to config log4cxx to delete the log files periodically</title>
    <link>http://comments.gmane.org/gmane.comp.apache.logging.log4cxx.user/2448</link>
    <description>
Hi All,

In my project, I need produce one log file per day and delete the log files
periodically so that at most 31 files are stored. I used
DailyRollingFileAppender, it helped me to reach my first goal easily. But
how to config it to delete the log files automatically? Thanks.

Regard,
Jathy
</description>
    <dc:creator>Jathy</dc:creator>
    <dc:date>2008-09-12T03:34:13</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.apache.logging.log4cxx.user/2447">
    <title>Question reguarding RollingFileAppender</title>
    <link>http://comments.gmane.org/gmane.comp.apache.logging.log4cxx.user/2447</link>
    <description>Hello,

I'm trying to create a single log file with a security check on its size 
to prevent it from filling up the file system.
From the log4j 1.2 and log4cxx documentation, it seems like I should be 
able to used the following configuration:

  &lt;appender name="testAppender" 
class="org.apache.log4j.RollingFileAppender"&gt;
    &lt;param name="File" value="/tmp/tesxt.txt"&gt;
    &lt;param name="maxBackupIndex" value="0"/&gt;
    &lt;param name="maxSize" value="2MB" /&gt;
  &lt;/appender&gt;

However the example above does not work and leads to a core dump
I tried several other type of configuration with 
org.apache.log4j.rolling.RollingFileAppender without any luck either

I don't actually need want the file to roll, because I'm using log4cxx 
within an api which can be run by several users
on the same computer, and rolling leads to problems with file owner and 
rights.

Anybody else got something like this working?

Also, which log4J API does log4cxx now implements?  I saw in thread from 
2002 that is was mimicking the 1.3 log4j AP</description>
    <dc:creator>Tanguy Le Gall</dc:creator>
    <dc:date>2008-09-11T14:41:29</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.apache.logging.log4cxx.user/2445">
    <title>Building a debug version of log4cxx</title>
    <link>http://comments.gmane.org/gmane.comp.apache.logging.log4cxx.user/2445</link>
    <description>We've been getting some core dumps in our application that are appear to
be occurring in the middle of calls in the log4cxx library. We want to
build a debug version of log4cxx for our FreeBSD boxes so we can
properly analyze the core dumps with gdb. What's the trick in build a
debug version of log4cxx? Can both the debug and release versions be
installed on the same system?

 

</description>
    <dc:creator>Peter Steele</dc:creator>
    <dc:date>2008-09-09T22:00:35</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.apache.logging.log4cxx.user/2444">
    <title>AsynchAppender, XMLSocketAppender and fast dying application</title>
    <link>http://comments.gmane.org/gmane.comp.apache.logging.log4cxx.user/2444</link>
    <description>
Hi All,

I'am currently working with log4cxx 0.10.0 on W-XP using MSVC 2005 Group
Edition.
The problem I have is the following. I use an AnsycAppender which uses
an 
XMLSocketAppender to publish events. 

When my application is going to terminate in the main method and no
event was send to the server
(chainsaw at the moment), the application hangs while performing
"LogManager::shutdown();" and
does not terminate.

What I figured out so far is, that the XMLLayout is using
"log4cxx::helpers::Transform::appendEscapingCDATA" 
which initialises some static variables. This initialisation interferes
with an "atexit" handler. The result 
is, that appendEscapingCDATA never returns. Hence, the thread of the
AsyncAppender never returns and the
whole application does not terminate.

A remedy is to perform the initialisation in advance, like this:

      {
        LogString buf;
        LogString input;
        log4cxx::helpers::Transform::appendEscapingCDATA(buf, input);
      }

This helps, but is not very intentional</description>
    <dc:creator>Stefan.Borovac&lt; at &gt;t-online.de</dc:creator>
    <dc:date>2008-09-04T13:20:34</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.apache.logging.log4cxx.user/2440">
    <title>log4cxx crashing when used in 'atexit' function.</title>
    <link>http://comments.gmane.org/gmane.comp.apache.logging.log4cxx.user/2440</link>
    <description>Hello,

I noticed that log4cxx (SVN r677817) crashes (Segmentation Fault)
when trying to log from an exit-handler. The code below reproduces 
the crash:

#include &lt;stdlib.h&gt;
#include &lt;log4cxx/logger.h&gt;
#include &lt;log4cxx/basicconfigurator.h&gt;

static log4cxx::LoggerPtr log;

static void cleanup() {
         LOG4CXX_DEBUG(log, "Oops...");
}

int main(int argc, char **argv) {
         atexit(cleanup);
         log4cxx::BasicConfigurator::configure();
         log = log4cxx::Logger::getLogger("main");
         atexit(cleanup);
         return 0;
}

Is this a bug in log4cxx or should one expect this behavior? If its
expected: Is there a workaround for this problem (getting rid of
'atexit()' is not an option...).

Thanks,

- Michel


</description>
    <dc:creator>Michel Marti</dc:creator>
    <dc:date>2008-08-29T19:46:54</dc:date>
  </item>
  <textinput about="http://search.gmane.org/?group=$group=gmane.comp.apache.logging.log4cxx.user">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.comp.apache.logging.log4cxx.user</link>
  </textinput>
</rdf:RDF>
