How can I perform logging from within a Jython class? I currently have the logger setup like the following.
In my configuration script file:
In my class script file:
import project.config.globals as globals logger=globals['logger'] class HelperClass(object): def testFunction(self): logger.trace("Log this statement")
I also tried to use the logger variable directly from the config script definition, but that didn’t work either so I tried the dictionary approach as sited by pturmel.
Function definition corrected. I removed the content of the class for the example pasted here. The use details are from a button action script:
import project.Helpers as Helpers test=Helpers.HelperClass() test.testFunction()
I expected a log entry.