Logging message in RTC server plug-in static block

Accepted answer

Log log = LogFactory.getLog(YourClass.class);
By default I believe this will log to the server/logs/jazz.log file.
Logging settings are in server/conf/jazz/log4j.properties if you want to add specific rules for YourClass.
Comments

Thanks Andrew. Your answer solved my problem.
I had looked at using the com.ibm.team.repository.common.LogFactory class. But this class only has a getLog(String componentId) method, and I wasn't sure what to pass in for the componentId.
Using the getLog(Class clazz) method from the org.apache.commons.logging.LogFactory class as you suggest works like a charm. In fact, the log message is written to the RTC log (ccm.log) rather than jazz.log file just as I want. I suspect that the getLog(Class clazz) method "knows" that my class is part of an RTC server plug-in and so returns the RTC log rather than the JTS log.

I have a similar need. My plugins extend AbstractService. Any comments on whether using AbstractService.getLog() is a good idea or not? It already appears to know how to find the componentId.