It's all about the answers!

Ask a question

Implementing logging in server side extension


Krzysztof Ka┼║mierczyk (7.4k34693) | asked Oct 22 '19, 8:02 a.m.

I am wrriting a custom server side plugin for RTC. I would like to add logging. How can I do that?

Accepted answer


permanent link
Krzysztof Ka┼║mierczyk (7.4k34693) | answered Oct 22 '19, 8:03 a.m.
You have to add the following part of the code to your plugin:

import org.apache.commons.logging.LogFactory;

...

private static final Log logger = LogFactory.getLog("com.myCompany.MyClassName");

...

logger.debug("Debug information");

logger.error("Error information");

If you want to change log level, you need to modify log4j.properties:

log4j.logger.com.myCompany.MyClassName=DEBUG.

Ralph Schoon selected this answer as the correct answer

Your answer


Register or to post your answer.