Brian Gore (bgore | 6 Nov 2006 01:05
Picon
Favicon

0.9.8 RollingFileAppender?

I was previous using the Log4cxx, v0.9.7, RollingFileAppender with the following configuration properties:
 
#   Rolling File Appender
log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=Log4CXX.txt
log4j.appender.R.MaxFileSize=3000KB
log4j.appender.R.Append=true
log4j.appender.R.MaxBackupIndex=7
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%d [%5t] %-5p %c{1} - %m
This successfully rolled logging output between 8 files of 3MB each.  But now that I've updated to LOGCXX-62, the rolling appender no longer works.  Instead, I just get one base file created which grows increasingly large.
 
I saw one post suggesting that rollingPolicy and triggeringPolicy properties were needed, but adding these also did not help.  Any ideas what's needed?
 
 
Jing Zheng | 6 Nov 2006 02:30
Favicon

RE: 0.9.8 RollingFileAppender?

 have you tried the patch in http://www.nabble.com/a-proposed-patch-for-DailyRollingFileAppender-by-Iwan-Tomlow-tf2514825.html?
that might help.


-----Original Message-----
From: bgore <at> cisco.com
Sent: Sun, 5 Nov 2006 16:05:30 -0800
To: log4cxx-user <at> logging.apache.org
Subject: 0.9.8 RollingFileAppender?

I was previous using the Log4cxx, v0.9.7, RollingFileAppender with the following configuration properties:
 
#   Rolling File Appender
log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=Log4CXX.txt
log4j.appender.R.MaxFileSize=3000KB
log4j.appender.R.Append=true
log4j.appender.R.MaxBackupIndex=7
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%d [%5t] %-5p %c{1} - %m
This successfully rolled logging output between 8 files of 3MB each.  But now that I've updated to LOGCXX-62, the rolling appender no longer works.  Instead, I just get one base file created which grows increasingly large.
 
I saw one post suggesting that rollingPolicy and triggeringPolicy properties were needed, but adding these also did not help.  Any ideas what's needed?
 
 
Davlet Panech | 6 Nov 2006 02:34
Picon
Favicon

Re: when/where can we get a usable log4cxx release

Curt Arnold <carnold <at> apache.org> writes:

> 
> 
> On Oct 23, 2006, at 12:23 PM, Jing Zheng wrote:
[...]
> > 2. provide option to link apr statically, I notice ant build has  
> > such an
> > option. subversion, as of 1.4, requires apr 0.9x.
> >
> 
> Linking apr and apr-util statically is the default with the ant  
> build.  Are you saying you'd like that option with the autotools  
> build, or do you have an issue or suggestion regarding the ant  
> build?   I'd recommend building statically since I'm not sure that  
> the APR termination is handled well if the calling app and log4cxx  
> both share the same shared instance of APR.
> 
> 

Hello,

I may be wrong but the above explanation sounds as if the build process may
include some static libraries (APR) into a shared library (log4cxx). Isn't that
wrong? Static libs are usually compiled without -fPIC, which is, AFAIK, required
for object code that goes into shared libs on at least some platforms. See for
example this discussion:

http://lists.debian.org/debian-mentors/2002/03/msg00172.html

D.

Brian Gore (bgore | 6 Nov 2006 22:23
Picon
Favicon

SVN failure

I'm trying to download the latest revision of Log4cxx, using the posted command:
 
But, from this, I'm getting the following SVN errors:
    svn: PROPFIND request failed on '/repos/asf/logging/log4cxx/trunk'
    svn: PROPFIND of '/repos/asf/logging/log4cxx/trunk': could not connect to server (http://svn.apache.org)
 
Am I missing something in my command/request, or is the repository offline?
Andreas Fester | 7 Nov 2006 20:15
Picon
Favicon

Re: SVN failure

Brian Gore (bgore) wrote:
> I'm trying to download the latest revision of Log4cxx, using the posted
> command:
>     svn co http://svn.apache.org/repos/asf/logging/log4cxx/trunk log4cxx

(At least currently), it works here:

$ svn co http://svn.apache.org/repos/asf/logging/log4cxx/trunk log4cxx
A    log4cxx/xdocs
A    log4cxx/xdocs/src
A    log4cxx/xdocs/src/performance.xml
A    log4cxx/xdocs/src/team.xml
...

Maybe just retry it ...

Regards,

	Andreas

mark123 | 8 Nov 2006 20:20
Picon

build problem


Hi
I am trying to build log4cxx on cygwin. It gets compiled but I get this
error when it links. Can anyone suggest what I should do?
thanks a lot
mark

ant -v  -Dos.family=cygwin -Dhas.wchar_t=0 build

build:
    [mkdir] Created dir: C:\log\logging\build\debug\shared\log4cxx_obj
Property ${pic-option} has not been set
       [cc] 144 total files to be compiled.
       [cc] gcc -c -g -DLOG4CXX -DAPR_DECLARE_STATIC -DAPU_DECLARE_STATIC
-IC:\log\logging\include -IC:\log\logging\lib\apr-1.2.7\include -IC:\l
g\logging\lib\apr-util-1.2.7\include C:\log\logging\src\socket.cpp
C:\log\logging\src\transcoder.cpp C:\log\logging\src\patternconverter.cpp
C:\
og\logging\src\optionconverter.cpp C:\log\logging\src\rootcategory.cpp
C:\log\logging\src\objectptr.cpp C:\log\logging\src\basicconfigurator.cpp
C:\log\logging\src\integerpatternconverter.cpp
C:\log\logging\src\loggingeventpatternconverter.cpp
C:\log\logging\src\filelocationpatternconvert
r.cpp C:\log\logging\src\fileinputstream.cpp
C:\log\logging\src\configurator.cpp C:\log\logging\src\sockethubappender.cpp
C:\log\logging\src\byt
buffer.cpp C:\log\logging\src\cyclicbuffer.cpp
C:\log\logging\src\triggeringpolicy.cpp
C:\log\logging\src\fulllocationpatternconverter.cpp C:\lo
\logging\src\datelayout.cpp C:\log\logging\src\formattinginfo.cpp
C:\log\logging\src\nameabbreviator.cpp C:\log\logging\src\logmanager.cpp
C:\lo
\logging\src\datepatternconverter.cpp C:\log\logging\src\ttcclayout.cpp
C:\log\logging\src\writer.cpp C:\log\logging\src\propertyconfigurator.cp
 C:\log\logging\src\charsetdecoder.cpp C:\log\logging\src\htmllayout.cpp
C:\log\logging\src\dateformat.cpp C:\log\logging\src\loggingevent.cpp C
\log\logging\src\datagramsocket.cpp C:\log\logging\src\fileappender.cpp
C:\log\logging\src\transform.cpp C:\log\logging\src\action.cpp C:\log\lo
ging\src\xmlsocketappender.cpp C:\log\logging\src\cacheddateformat.cpp
C:\log\logging\src\socketoutputstream.cpp C:\log\logging\src\strftimedate
ormat.cpp C:\log\logging\src\integer.cpp C:\log\logging\src\odbcappender.cpp
C:\log\logging\src\rollingpolicy.cpp C:\log\logging\src\simplelayou
.cpp C:\log\logging\src\namepatternconverter.cpp
C:\log\logging\src\rolloverdescription.cpp C:\log\logging\src\level.cpp
C:\log\logging\src\sock
timpl.cpp C:\log\logging\src\systemoutwriter.cpp
C:\log\logging\src\writerappender.cpp C:\log\logging\src\loader.cpp
C:\log\logging\src\filerena
eaction.cpp C:\log\logging\src\simpledateformat.cpp
C:\log\logging\src\throwableinformationpatternconverter.cpp
C:\log\logging\src\condition.cpp
C:\log\logging\src\loggerpatternconverter.cpp
C:\log\logging\src\objectimpl.cpp C:\log\logging\src\telnetappender.cpp
C:\log\logging\src\filewat
hdog.cpp C:\log\logging\src\propertyresourcebundle.cpp
C:\log\logging\src\linelocationpatternconverter.cpp
C:\log\logging\src\system.cpp C:\log\
ogging\src\systemerrwriter.cpp C:\log\logging\src\inetaddress.cpp
C:\log\logging\src\locationinfo.cpp
C:\log\logging\src\onlyonceerrorhandler.cp
 C:\log\logging\src\stringmatchfilter.cpp
C:\log\logging\src\propertysetter.cpp C:\log\logging\src\mdc.cpp
C:\log\logging\src\filedatepatterncon
erter.cpp C:\log\logging\src\nteventlogappender.cpp
C:\log\logging\src\stringhelper.cpp
C:\log\logging\src\dailyrollingfileappender.cpp C:\log\l
gging\src\bytearrayinputstream.cpp
C:\log\logging\src\obsoleterollingfileappender.cpp
C:\log\logging\src\patternlayout.cpp C:\log\logging\src\fi
e.cpp C:\log\logging\src\timebasedrollingpolicy.cpp
C:\log\logging\src\charsetencoder.cpp
C:\log\logging\src\levelpatternconverter.cpp C:\log\lo
ging\src\thread.cpp C:\log\logging\src\serversocket.cpp
C:\log\logging\src\locale.cpp C:\log\logging\src\rollingpolicybase.cpp
C:\log\logging\sr
\lineseparatorpatternconverter.cpp C:\log\logging\src\datagrampacket.cpp
C:\log\logging\src\fileoutputstream.cpp C:\log\logging\src\propertiespa
ternconverter.cpp C:\log\logging\src\exception.cpp
C:\log\logging\src\xmllayout.cpp C:\log\logging\src\syslogwriter.cpp
C:\log\logging\src\relat
vetimedateformat.cpp C:\log\logging\src\threadspecificdata.cpp
C:\log\logging\src\levelmatchfilter.cpp C:\log\logging\src\date.cpp
C:\log\loggin
\src\patternparser.cpp C:\log\logging\src\consoleappender.cpp
C:\log\logging\src\socketappenderskeleton.cpp
C:\log\logging\src\aprinitializer.cp
 C:\log\logging\src\layout.cpp C:\log\logging\src\levelrangefilter.cpp
C:\log\logging\src\messagepatternconverter.cpp C:\log\logging\src\fallbac
errorhandler.cpp C:\log\logging\src\domconfigurator.cpp
C:\log\logging\src\unicodehelper.cpp C:\log\logging\src\mutex.cpp
C:\log\logging\src\sys
ogappender.cpp C:\log\logging\src\classnamepatternconverter.cpp
C:\log\logging\src\rollingfileappender.cpp C:\log\logging\src\socketnode.cpp
C:\
og\logging\src\resourcebundle.cpp C:\log\logging\src\synchronized.cpp
C:\log\logging\src\timezone.cpp C:\log\logging\src\pool.cpp C:\log\logging
src\reader.cpp C:\log\logging\src\smtpappender.cpp
C:\log\logging\src\filterbasedtriggeringpolicy.cpp
C:\log\logging\src\fixedwindowrollingpolic
.cpp C:\log\logging\src\literalpatternconverter.cpp
C:\log\logging\src\defaultcategoryfactory.cpp
C:\log\logging\src\appenderskeleton.cpp C:\log
logging\src\relativetimepatternconverter.cpp
C:\log\logging\src\inputstreamreader.cpp
C:\log\logging\src\stringtokenizer.cpp C:\log\logging\src\
hreadpatternconverter.cpp C:\log\logging\src\properties.cpp
C:\log\logging\src\sizebasedtriggeringpolicy.cpp
C:\log\logging\src\ndcpatternconver
er.cpp C:\log\logging\src\inputstream.cpp
C:\log\logging\src\outputstream.cpp C:\log\logging\src\logger.cpp
C:\log\logging\src\hierarchy.cpp C:\
og\logging\src\ndc.cpp C:\log\logging\src\classregistration.cpp
C:\log\logging\src\loglog.cpp C:\log\logging\src\socketinputstream.cpp
C:\log\lo
ging\src\class.cpp C:\log\logging\src\asyncappender.cpp
C:\log\logging\src\methodlocationpatternconverter.cpp
C:\log\logging\src\socketappender.
pp C:\log\logging\src\outputdebugstringappender.cpp
C:\log\logging\src\appenderattachableimpl.cpp
C:\log\logging\src\manualtriggeringpolicy.cpp
:\log\logging\src\bufferedwriter.cpp
C:\log\logging\src\outputstreamwriter.cpp C:\log\logging\src\logstream.cpp
C:\log\logging\src\defaultconfig
rator.cpp
       [cc] Starting link
       [cc] gcc -g -shared -o liblog4cxx.so log4cxx_obj\socket.o
log4cxx_obj\transcoder.o log4cxx_obj\patternconverter.o
log4cxx_obj\optionconve
ter.o log4cxx_obj\rootcategory.o log4cxx_obj\objectptr.o
log4cxx_obj\basicconfigurator.o log4cxx_obj\integerpatternconverter.o
log4cxx_obj\loggi
geventpatternconverter.o log4cxx_obj\filelocationpatternconverter.o
log4cxx_obj\fileinputstream.o log4cxx_obj\configurator.o log4cxx_obj\socketh
bappender.o log4cxx_obj\bytebuffer.o log4cxx_obj\cyclicbuffer.o
log4cxx_obj\triggeringpolicy.o log4cxx_obj\fulllocationpatternconverter.o
log4cx
_obj\datelayout.o log4cxx_obj\formattinginfo.o log4cxx_obj\nameabbreviator.o
log4cxx_obj\logmanager.o log4cxx_obj\datepatternconverter.o log4cxx
obj\ttcclayout.o log4cxx_obj\writer.o log4cxx_obj\propertyconfigurator.o
log4cxx_obj\charsetdecoder.o log4cxx_obj\htmllayout.o log4cxx_obj\datef
rmat.o log4cxx_obj\loggingevent.o log4cxx_obj\datagramsocket.o
log4cxx_obj\fileappender.o log4cxx_obj\transform.o log4cxx_obj\action.o
log4cxx_o
j\xmlsocketappender.o log4cxx_obj\cacheddateformat.o
log4cxx_obj\socketoutputstream.o log4cxx_obj\strftimedateformat.o
log4cxx_obj\integer.o log
cxx_obj\odbcappender.o log4cxx_obj\rollingpolicy.o
log4cxx_obj\simplelayout.o log4cxx_obj\namepatternconverter.o
log4cxx_obj\rolloverdescription
o log4cxx_obj\level.o log4cxx_obj\socketimpl.o log4cxx_obj\systemoutwriter.o
log4cxx_obj\writerappender.o log4cxx_obj\loader.o log4cxx_obj\filer
nameaction.o log4cxx_obj\simpledateformat.o
log4cxx_obj\throwableinformationpatternconverter.o log4cxx_obj\condition.o
log4cxx_obj\loggerpattern
onverter.o log4cxx_obj\objectimpl.o log4cxx_obj\telnetappender.o
log4cxx_obj\filewatchdog.o log4cxx_obj\propertyresourcebundle.o
log4cxx_obj\lin
locationpatternconverter.o log4cxx_obj\system.o
log4cxx_obj\systemerrwriter.o log4cxx_obj\inetaddress.o
log4cxx_obj\locationinfo.o log4cxx_obj\o
lyonceerrorhandler.o log4cxx_obj\stringmatchfilter.o
log4cxx_obj\propertysetter.o log4cxx_obj\mdc.o
log4cxx_obj\filedatepatternconverter.o log4c
x_obj\nteventlogappender.o log4cxx_obj\stringhelper.o
log4cxx_obj\dailyrollingfileappender.o log4cxx_obj\bytearrayinputstream.o
log4cxx_obj\obso
eterollingfileappender.o log4cxx_obj\patternlayout.o log4cxx_obj\file.o
log4cxx_obj\timebasedrollingpolicy.o log4cxx_obj\charsetencoder.o log4cx
_obj\levelpatternconverter.o log4cxx_obj\thread.o log4cxx_obj\serversocket.o
log4cxx_obj\locale.o log4cxx_obj\rollingpolicybase.o log4cxx_obj\li
eseparatorpatternconverter.o log4cxx_obj\datagrampacket.o
log4cxx_obj\fileoutputstream.o log4cxx_obj\propertiespatternconverter.o
log4cxx_obj\ex
eption.o log4cxx_obj\xmllayout.o log4cxx_obj\syslogwriter.o
log4cxx_obj\relativetimedateformat.o log4cxx_obj\threadspecificdata.o
log4cxx_obj\le
elmatchfilter.o log4cxx_obj\date.o log4cxx_obj\patternparser.o
log4cxx_obj\consoleappender.o log4cxx_obj\socketappenderskeleton.o
log4cxx_obj\ap
initializer.o log4cxx_obj\layout.o log4cxx_obj\levelrangefilter.o
log4cxx_obj\messagepatternconverter.o log4cxx_obj\fallbackerrorhandler.o
log4c
x_obj\domconfigurator.o log4cxx_obj\unicodehelper.o log4cxx_obj\mutex.o
log4cxx_obj\syslogappender.o log4cxx_obj\classnamepatternconverter.o log
cxx_obj\rollingfileappender.o log4cxx_obj\socketnode.o
log4cxx_obj\resourcebundle.o log4cxx_obj\synchronized.o
log4cxx_obj\timezone.o log4cxx_ob
\pool.o log4cxx_obj\reader.o log4cxx_obj\smtpappender.o
log4cxx_obj\filterbasedtriggeringpolicy.o
log4cxx_obj\fixedwindowrollingpolicy.o log4cxx
obj\literalpatternconverter.o log4cxx_obj\defaultcategoryfactory.o
log4cxx_obj\appenderskeleton.o log4cxx_obj\relativetimepatternconverter.o
log
cxx_obj\inputstreamreader.o log4cxx_obj\stringtokenizer.o
log4cxx_obj\threadpatternconverter.o log4cxx_obj\properties.o
log4cxx_obj\sizebasedtri
geringpolicy.o log4cxx_obj\ndcpatternconverter.o log4cxx_obj\inputstream.o
log4cxx_obj\outputstream.o log4cxx_obj\logger.o log4cxx_obj\hierarchy
o log4cxx_obj\ndc.o log4cxx_obj\classregistration.o log4cxx_obj\loglog.o
log4cxx_obj\socketinputstream.o log4cxx_obj\class.o log4cxx_obj\asyncap
ender.o log4cxx_obj\methodlocationpatternconverter.o
log4cxx_obj\socketappender.o log4cxx_obj\outputdebugstringappender.o
log4cxx_obj\appenderat
achableimpl.o log4cxx_obj\manualtriggeringpolicy.o
log4cxx_obj\bufferedwriter.o log4cxx_obj\outputstreamwriter.o
log4cxx_obj\logstream.o log4cxx
obj\defaultconfigurator.o -LC:\log\logging\build\debug\static -laprutil-1
-LC:\log\logging\build\debug\static -lapr-1 -lpthread -lexpat -lstdc++
       [cc] log4cxx_obj\domconfigurator.o: In function
`_ZN7log4cxx3xml15DOMConfigurator17configureAndWatchERKSs':
       [cc] C:\log\logging\src\domconfigurator.cpp:715: undefined reference
to `log4cxx::helpers::FileWatchdog::DEFAULT_DELAY'
       [cc] log4cxx_obj\domconfigurator.o: In function
`_ZN7log4cxx3xml15DOMConfigurator17configureAndWatchERKSsl':
       [cc] C:\log\logging\src\domconfigurator.cpp:731: undefined reference
to `log4cxx::helpers::FileWatchdog::start()'
       [cc] log4cxx_obj\domconfigurator.o: In function
`_ZN9__gnu_cxx13new_allocatorISt13_Rb_tree_nodeISt4pairIKSsSsEEEC2ERKS6_':
       [cc]
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/ext/new_allocator.h:(.text$_ZN11XMLWatchdogC1ERKSs[XMLWatchdog::XMLWatchdog(std::basic
string<char, std::char_traits<char>, std::allocator<char> > const&)]+0x63):
undefined reference to `log4cxx::helpers::FileWatchdog::FileWatchdog
log4cxx::File const&)'
       [cc]
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/ext/new_allocator.h:(.text$_ZN11XMLWatchdogD1Ev[XMLWatchdog::~XMLWatchdog()]+0x16):
un
efined reference to `log4cxx::helpers::FileWatchdog::~FileWatchdog()'
       [cc]
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/ext/new_allocator.h:(.text$_ZN11XMLWatchdogD0Ev[XMLWatchdog::~XMLWatchdog()]+0x16):
un
efined reference to `log4cxx::helpers::FileWatchdog::~FileWatchdog()'
       [cc] log4cxx_obj\class.o: In function
`_ZN7log4cxx7helpers5Class15registerClassesEv':
       [cc] C:\log\logging\src\class.cpp:136: undefined reference to
`log4cxx::AsyncAppender::registerClass()'
       [cc] C:\log\logging\src\class.cpp:153: undefined reference to
`log4cxx::net::SocketAppender::registerClass()'
       [cc] C:\log\logging\src\class.cpp:154: undefined reference to
`log4cxx::net::SocketHubAppender::registerClass()'
       [cc] C:\log\logging\src\class.cpp:156: undefined reference to
`log4cxx::net::TelnetAppender::registerClass()'
       [cc] C:\log\logging\src\class.cpp:157: undefined reference to
`log4cxx::net::XMLSocketAppender::registerClass()'
       [cc] C:\log\logging\build\debug\static/libaprutil-1.a(xlate.o): In
function `apr_xlate_cleanup':
       [cc] C:\log\logging\lib\apr-util-1.2.7\xlate\xlate.c:93: undefined
reference to `_libiconv_close'
       [cc] C:\log\logging\build\debug\static/libaprutil-1.a(xlate.o): In
function `check_sbcs':
       [cc] C:\log\logging\lib\apr-util-1.2.7\xlate\xlate.c:120: undefined
reference to `_libiconv'
       [cc] C:\log\logging\lib\apr-util-1.2.7\xlate\xlate.c:132: undefined
reference to `_libiconv_close'
       [cc] C:\log\logging\lib\apr-util-1.2.7\xlate\xlate.c:140: undefined
reference to `_libiconv_close'
       [cc] C:\log\logging\lib\apr-util-1.2.7\xlate\xlate.c:141: undefined
reference to `_libiconv_open'
       [cc] C:\log\logging\build\debug\static/libaprutil-1.a(xlate.o): In
function `apr_xlate_open':
       [cc] C:\log\logging\lib\apr-util-1.2.7\xlate\xlate.c:251: undefined
reference to `_libiconv_open'
       [cc] C:\log\logging\build\debug\static/libaprutil-1.a(xlate.o): In
function `apr_xlate_conv_buffer':
       [cc] C:\log\logging\lib\apr-util-1.2.7\xlate\xlate.c:343: undefined
reference to `_libiconv'
       [cc] collect2: ld returned 1 exit status

BUILD FAILED
C:\log\logging\build.xml:723: gcc failed with return code 1
        at
net.sf.antcontrib.cpptasks.compiler.CommandLineLinker.link(CommandLineLinker.java:278)
        at
net.sf.antcontrib.cpptasks.compiler.CommandLineLinkerConfiguration.link(CommandLineLinkerConfiguration.java:117)
        at net.sf.antcontrib.cpptasks.CCTask.execute(CCTask.java:773)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:341)
        at org.apache.tools.ant.Target.performTasks(Target.java:369)
        at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
        at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
        at org.apache.tools.ant.Main.runBuild(Main.java:668)
        at org.apache.tools.ant.Main.startAnt(Main.java:187)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)

Total time: 1 minute 42 seconds

--

-- 
View this message in context: http://www.nabble.com/build-problem-tf2597270.html#a7245039
Sent from the Log4cxx - Users mailing list archive at Nabble.com.

Conway Allen | 14 Nov 2006 16:52

log4cxx 0.9.8

Hi,

 

You used to be able to pick up log4cxx here http://littletux.homelinux.org/log4cxx/log4cxx-0.9.8.tar.gz but you couldn’t today, and no doubt you haven’t been able to for a while. Where can I pick it up please?

 

Thanks, Allen.

 

Vijai Kalyan | 14 Nov 2006 23:39
Picon

Re: log4cxx 0.9.8

 
There is a log4cxx-0.10.0.tar.gz available in that dir. Is there any reason why the build number might have been incremented?

 
On 11/14/06, Conway Allen <Allen.Conway <at> atosorigin.com> wrote:

Hi,

 

You used to be able to pick up log4cxx here http://littletux.homelinux.org/log4cxx/log4cxx-0.9.8.tar.gz but you couldn't today, and no doubt you haven't been able to for a while. Where can I pick it up please?

 

Thanks, Allen.

 


Curt Arnold | 15 Nov 2006 05:40
Picon
Favicon

Re: log4cxx 0.9.8


On Nov 14, 2006, at 4:39 PM, Vijai Kalyan wrote:

>
> There is a log4cxx-0.10.0.tar.gz available in that dir. Is there  
> any reason why the build number might have been incremented?
>

Yes, 0.9.8 implies binary compatibility with 0.9.7 which wasn't the  
case.  The forthcoming version will be 0.10.0.

Stephen Bartnikowski | 15 Nov 2006 21:17

possible race condition with forked process

Hello,

I'm essentially calling LOG4CXX_INFO in a child process between a call to
fork() and a call to execv() on FreeBSD 6.0.  The child process blocks
indefinitely maybe 1 in 4 times upon calling the LOG4CXX_INFO macro.  If it
doesn't block there, log4cxx calls after the execv work fine.  If I remove
the call between the fork and execv, then I never encounter the problem.

I was using 0.9.7, so I was hoping the latest from SVN would fix my issue.
However, upgrading did not improve the situation.  I am interested to try
this on my Linux machine, but it will take some time to get the latest
log4cxx installed on there as well.

Would there be any race conditions involved in calling LOG4CXX_INFO using
the parent's logger object between a fork and exec?  I know the parent's
memory is supposed to be copied for the child after the fork, rather than
shared, but I can imagine something could get broken in the copy-on-write,
or maybe mutex initialization, or even static data.

Thanks!


Gmane