> > Just thought I'd throw my $0.02 regarding threads. If seen pthreads
> > mentioned a couple of times in the archives, but no mention of using
> > pthreads with win32. There is a LGPL version of pthreads for
> win32 which is
> > quite good... http://sources.redhat.com/pthreads-win32/. I've
> been using it
> > extensively and it works quite well...
>
> Well, in that case I would like to invite you to write pthreads-win32
> support for log4cpp ;-)
> Actually since it is crossplatform I presume, that would mean pthreads
> support for *nix and other platforms as well. Hmm, very nice.
If I actually knew what I was doing I'd give it a try...problem is that I
wouldn't wish my threaded code on anyone right now...using exensively
doesn't mean using well in this case :-). But I think you got the
idea...pthreads IS cross platform between *nix, and the idea behind the
win32 port was to bring this to WinXX. The folks at Elvin
(http://elvin.dstc.edu.au/) use it as a cross platform threaded API. You
might want to throw a quesiton out on their development list to get their
thoughts...
> >
> > Now on to my big question...log4j includes level, appender and layout
> > "inheritance". log4cpp doesn't seem to support these features.
> Is this on
> > purpose? I would think this is a handy feature.
> >
>
> Maybe I don't understand your question, but I think you are saying that
> in log4j levels, appenders and layouts are inherited in the sense that a
> LoggingEvent sent to child Category (Logger) will be processed by the
> appender and layout of the parent Category.
> Well, log4cpp does this too, in pretty much the same way as log4j. Just
> look at the examples in the tests subdirectory.
Hummm....I did try all the examples, specifically testCategory.cpp for this
case, and it didn't seem to do what I expected. Is what you said true if the
parent is root? I will give it another go, and I'll send an example if it
seems to be doing something different...
VR, Charlie
|