I have a mess I would like to attach log4j logging to. Let me try to explain the process.
- Third-party application launches a JVM and loads Main.jar. Main.jar includes a properties file for log4j logging and code to read it in with a
PropertyConfigurator
. Logging in Main.jar works. - Later, third-party application loads JythonApp.jar.
- JythonApp.jar starts up a Jython interpreter and runs a script which uses classes from Main.jar, included by appending the Main.jar to
sys.path
. This is where the logging fails. The classes used by the Jython script have logging calls, but they do not log.
Any ideas how to make this all work? If you need more information, I will certainly understand and happily provide it.