It's all about the answers!

Ask a question

Implementing logging in server side extension

Krzysztof Kaźmierczyk (7.4k476103) | 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.4k476103) | 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

Ralph Schoon selected this answer as the correct answer

One other answer

permanent link
Vinilda DSouza (11) | answered Aug 09 '23, 6:56 a.m.

 Hello Ralph,

I need to add loggers at server side. However there's no file. There's log4j2.xml file. Here it captures only log.error statements. I need to capture or log.debug statements.

Thanks in Advance,

Ralph Schoon commented Aug 09 '23, 8:16 a.m.

I would suggest you search the server SDK for log4j usage, especially since the latest version of ELM uses a different Version of log4j and things work a bit different.  

Your answer

Register or 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.