Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How to do logging in a server-site plugin?

Hi,

I created a server-site plugin that sends a Http message whenever a workitem is saved. Due to problems on the receiver site I would like to log several details from the plugin processing. How can I do that?

I created a log4j.logger (my class is named "com.ibm.rationalcoc.workitem.followup.service.BuildOnStateChangeParticipant")
private static org.apache.log4j.Logger logger = org.apache.log4j.Logger.getLogger(BuildOnStateChangeParticipant.class);
and added following entries to the ccm log4j.properties :
log4j.logger.com.ibm.rationalcoc=DEBUG
com.ibm.rationalcoc=DEBUG

Which of these statements is correct? Is the log4j properties file in /server/conf/ccm the correct place for logger definitions within a RTC plugin?

Regards,
Berthold Kroeger

0 votes


Be the first one to answer this question!

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 8

Question asked: Nov 12 '14, 2:15 p.m.

Question was seen: 3,618 times

Last updated: Nov 12 '14, 2:15 p.m.

Confirmation Cancel Confirm