Is it possible for a java class to pick up the log4j configuration in jython?  I have the java class and jython script below.  log4j initializes in the jython script.  However, the jython script does not pass the configuration to the class.




I have the following java class

package test.sbl;

import java.io.*;
import java.nio.MappedByteBuffer;
import java.nio.channels.FileChannel;
import java.util.*;
import org.apache.log4j.Logger ;

public class SBLOs {

   
    static Logger logger = Logger.getLogger(SBLOs.class);
   

   
public void echo (String message){
    logger.debug("String: "+message+"Has been passed");
   
}



test.py

from test.sbl import SBLOs
from org.apache.log4j import *
 
import sys
 
test = SBLOs()
test.echo("hello")

print 'Hello Jython World!'

logger = Logger.getLogger(__name__);
loggerconfig = PropertyConfigurator.configure("C:\\\deployLogger.properties
");


def test():
    logger.debug("inside test method")
   
logger.debug ("log4j inside jython")
test()