I would much more prefer if there was a 'standard' format for logging events
that could be used by log4j, logback, log4cxx, ...

Something like format used by XmlSocketAppender in log4cxx but binary instead
of that verbose xml, and optionally compressed on the fly.

Then you could have one LogViewer application (eg Chanisaw) that could receive
events from log4j, log4cxx, logback, ...

Maarten


On 10/4/07, Wilfong, Paul <[EMAIL PROTECTED]> wrote:
> I plan to support logging in an environment with C++ programs and Java
> programs.  I've been successful, I believe, in figuring out what I want
> to do using log4j and log4cxx.
>
> But now logback is coming along, and it occurred to me that there might
> be another way - use JNI to invoke log4j (or logback) from the C++
> programs.
>
> So - Question:  Has anyone used log4j with JNI from C++ programs?  Or
> would anyone have any advice about it?
>
> I would expect reactions like "Complicated, Lots of overhead, etc".  But
> I think that it would be nice not to have to worry about using the
> XMLSocketReceiver plugin anymore.
>
> Thanks much for any input.
>
> By the way, it seems that using Java to invoke C++ via JNI is commonly
> known.  But documentation I have seen (e.g.,  <tut-native1dot1.zip> in
> <http://java.sun.com/docs/books/tutorial/information/download.html>
> says it can do it the other way too.
>
>

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

Reply via email to