Ceki,

Yes, that would be a good solution, but there would have to be a
persistent JVM running to talk to somewhere and that raises its own
problems in terms of maintenance and reliability, some of the solutions
I mentioned take care of that for you.  

But a client/server model like that could be really powerful. 
Unfortunately, the Externalizable interface looks like it takes
serialized Java classes, and so does the log4j.net.SimpleSocketServer,
which reduces their usefullness to non-java processes.  Could the log4j
stuff present an interface that accepts simple XML messages?  Then
*everybody* could log to a log4j server--jabber clients, ruby programs,
shell scripts, you name it.


Ceki Gülcü wrote:
> 
> Kevin,
> 
> I meant bridging in the large sense: having Log::Log4perl call log4j
> appenders and also vice versa (why not?).
> 
> One relatively "low tech" solution  is to have Log::Log4perl client to
> talk to a log4j server  by sending serialized logging events. The next
> version  of log4j  is very  likely to  use  the java.io.Externalizable
> interface which just might be simple enough to be reproduced by a perl
> client.  The disadvantage  of this  solution  is that  it requires  an
> additional process  (the log4j server process). The  advantage is that
> it  is "low  tech" using  just  TCP to  bridge between  perl and  java
> logging.  The  same  technique   can  also  apply  to  bridging  other
> languages.
> 
> As you mentioned in your  mail, another approach consists of embedding
> Java within  Perl or  directly calling java  from perl.   My unfounded
> suspicion is that  this technique will be slow and  too complex although I
> might be completely off base here.
> 
> At 10:25 11.07.2002 -0700, Kevin Goess wrote:
> >Ceki,
> >
> >You mean have a perl call to the logger handled by the java appender?
> >Funny, I didn't even think of that.  That would be interesting, I'm
> >going to add it to the feature list on sourceforge.  These would all be
> >possible implementations:
> >Inline::Java - http://search.cpan.org/search?dist=Inline-Java
> >Java - http://search.cpan.org/search?dist=Java
> >Jvm - http://search.cpan.org/search?dist=Jvm
> >
> >Ceki Gülcü wrote:
> > >
> > > Mike,
> > >
> > > This is wonderful news. I wish a tool like Log::Log4perl existed at
> > > the time when I was doing serious Perl development. I'll update the
> > > downloads page asap.
> > >
> > > Do you think we could bridge between log4j appenders and Log::Log4perl
> > > appenders? Is that a venue that you would like to pursue?
> > >
> 
> --
> Ceki

-- 
Happy Trails . . .

Kevin M. Goess 
(and Anne and Frank)
904 Carmel Ave.
Albany, CA  94706
(510) 525-5217

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to