@@ -0,0 +1,1749 @@
+package com.epam.cisen.processor.log4j;%0A%0Aimport java.io.IOException;%0Aimport java.util.Hashtable;%0Aimport java.util.Map;%0A%0Aimport org.apache.felix.scr.annotations.Activate;%0Aimport org.apache.felix.scr.annotations.Component;%0Aimport org.apache.felix.scr.annotations.Reference;%0Aimport org.apache.felix.scr.annotations.Service;%0Aimport org.osgi.service.cm.Configuration;%0Aimport org.osgi.service.cm.ConfigurationAdmin;%0Aimport org.slf4j.Logger;%0Aimport org.slf4j.LoggerFactory;%0A%0A@Component%0A@Service(Log4jConfigurationService.class)%0Apublic class Log4jConfigurationService %7B%0A%0A    private static final Logger LOGGER = LoggerFactory.getLogger(Log4jConfigurationService.class);%0A%0A    @Reference%0A    private ConfigurationAdmin configurationAdmin;%0A%0A    @Activate%0A    public void start(Map%3CString, Object%3E properties) %7B%0A%0A        try %7B%0A            final Configuration configuration = configurationAdmin.getConfiguration(%22org.ops4j.pax.logging%22, null);%0A%0A            final Hashtable%3CString, Object%3E log4jProps = new Hashtable%3C%3E();%0A            log4jProps.put(%22log4j.rootLogger%22, %22ALL, file%22);%0A            log4jProps.put(%22log4j.appender.file%22, %22org.apache.log4j.RollingFileAppender%22);%0A            log4jProps.put(%22log4j.appender.file.File%22, %22../../../logs/error.log%22);%0A            log4jProps.put(%22log4j.appender.file.MaxFileSize%22, %221MB%22);%0A            log4jProps.put(%22log4j.appender.file.MaxBackupIndex%22, %221%22);%0A            log4jProps.put(%22log4j.appender.file.layout%22, %22org.apache.log4j.PatternLayout%22);%0A            log4jProps.put(%22log4j.appender.file.layout.ConversionPattern%22, %22%25d%7BABSOLUTE%7D %255p %25c%7B1%7D:%25L - %25m%25n%22);%0A            configuration.update(log4jProps);%0A%0A        %7D catch (IOException ex) %7B%0A            LOGGER.error(%22Fail to load configuration.%22, ex);%0A        %7D%0A    %7D%0A%0A%7D

Add Log to file configuration and PAX logger. But still need some work: The logger output in console by default, i need to replace appender on file from start up moment. Fragment-Host is not work for some reason. And need a normal configuration service at least.