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 Hello Michele,
existing RTC appender
my appender
You have to enable your class to log in the second file:
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. |