You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by b2...@perlmeister.com on 2005/12/08 04:34:41 UTC

Re: [log4perl-devel] log4j Integration

On Mon, 28 Nov 2005, Anant K wrote:

> I am working on a project which involves two development environments: one
> is in java and uses log4j, the other in perl using log4perl. Programs in
> either system are called interchangeably, and we would like to integrate
> both the logging systems so they log to one file. What is the best way of
> doing this?

That's an interesting use case. CC:ing Log4j-user.

>From a Log::Log4perl point of view, I'd say that a socket appender is probably the
best solution, similar to the Chainsaw example:

    http://log4perl.sourceforge.net/d/Log/Log4perl/FAQ.html#ec4ff

> I've looked at using an SocketServer with log4j and a
> SocketAppender with log4perl, but I get stream header errors when sending.

With L4p or L4j?

> I
> noticed there may be a way to get the two to talk using XMLSocketServer's
> and XMLSocketAppender's, but that is only available in the alpha version of
> log4j, which I cannot use yet. Has anyone else tried to get a similar setup
> going (i.e. log4perl and log4j using the same appender)? Thanks.

-- Mike

Mike Schilli
m@perlmeister.com

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org