Skip to end of metadata
Go to start of metadata

You need to collect information from a process, a Gateway or Client Script that will not be captured in the Console

Step-by-step guide

Adapt the following code to your needs

# import the Logger function
from org.apache.log4j import Logger
# instantiate it and give it a meaningful name
logger = Logger.getLogger('MyLoggerForMyProcess')

# every time you need to write something, it's basically like a print."MyLoggerForMyProcess for %s is %s (Xlog = %s)" % (aString, str(aBoolean), str(anInteger)))