You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4cxx-user@logging.apache.org by Shea Ray-B27964 <B2...@freescale.com> on 2010/04/29 18:44:31 UTC

log4cxx/log4j interoperability

Apologies if this has been answered before, but I have been searching
and haven't found an answer.
 
We have an application that is a mix of Java and C++ code, and are
wondering if we can use log4j and log4cxx together to log to the same
file, assuming each is defined with appenders that point to the same
file, and assuming both Java and C++ are running in the same process.
 
Is this as simple as defining the proper FileAppenders on both the Java
and C++ side, or do we have to use something like SocketAppenders?
 
Our goal is to have a single unified log so that users don't have to try
to correlate intertwined log messages from two different log files just
because the log messages originated from within different code spaces.
 
I've used log4j for years but am new to log4cxx.
 
Thanks,
 
Ray Shea
Senior Software Engineer
Freescale Semiconductor