From: Mike S. <m...@pe...> - 2005-12-08 06:10:18
|
On Wed, 7 Dec 2005, Anant K wrote: > The stream errors are on the log4j side; it does not seem to be able to > understand what log4perl is sending it. Are you using XML format as described in the FAQ? -- Mike Mike Schilli m...@pe... > On 12/7/05, Mike Schilli <m...@pe...> wrote: > > > > 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 Ceki. > > > > 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...@pe... > > > |