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.
