How to log informarion in plugin?
Hello,
In my plugin, I want maintain log for some activities. How can I add my comments as a log to logs/ccm.log? Also is it possible to maintain separate log file in separate folder(not in ccm.log)? If yes, how can it be done? Thanks. |
Accepted answer
On server side, extending the AbstractService class you have the getLog() method that permits to log.
The configuration of the log are managed by log4j.properties file stored in your application configuration folder (like JAZZ_HOME/server/conf/ccm). You can use this file to manage which level log and for which class and what file use to store. I generally use a separated log file for the extensions. Avinash Bamane selected this answer as the correct answer
Comments
Avinash Bamane
commented Nov 26 '15, 5:50 a.m.
Hello Michele,
existing RTC appender
my appender
Michele Pegoraro
commented Nov 26 '15, 6:06 a.m.
You have to enable your class to log in the second file:
Avinash Bamane
commented Nov 26 '15, 6:28 a.m.
Hello Michele,
|
One other answer
On server side, extending the AbstractService class you have the getLog() method that permits to log.
The configuration of the log are managed by log4j.properties file stored in your application configuration folder (like JAZZ_HOME/server/conf/ccm). You can use this file to manage which level log and for which class and what file use to store. I generally use a separated log file for the extensions. |
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.