I tried to find a solution and I find where is the problem.
When I write this code:
Code:
Logger logger = LoggerFactory.getLogger(className.getClass());
logger.info(string);
DM server should use this logger of the serviceability.xml file
Code:
<logger level="INFO" additivity="false" name="com.springsource.osgi.medic.eventlog.default">
<appender-ref ref="SIFTED_LOG_FILE" />
<appender-ref ref="LOG_FILE" />
</logger>
instead the unique method to use this code it's to change the initial code in:
Code:
Logger logger = LoggerFactory.getLogger(className.getClass());
logger.info("com.springsource.osgi.medic.eventlog.default");
I don't know how to set my server in the right way...