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
[EMAIL PROTECTED]

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

Reply via email to