An existing File isn't overwritten. Cause the feature only provides a file
for first installation.
The pax-logging config is a file which already exists.
But you are able to add extra configuration to the file by adding the
config element to your features.xml, as long as it doesn't overwrite
existing property entries.

Regards, Achim


2013/5/23 Raman <[email protected]>

> Hi,
>      I have a KAR file with following feature XML file.  I want to update
> existing org.ops4j.pax.logging.cfg for my appender. While installing KAR
> file I don’t see org.ops4j.pax.logging.cfg is updating. I am using Apahe
> Karaf 2.3.0. Anything wrong I am doing?
>
> <?xml version="1.0" encoding="UTF-8"?>
>                                 <features xmlns="
> http://karaf.apache.org/xmlns/features/v1.0.0"; name="Node-KAR">
>                                                 <feature name="node-core">
>                                                                 <bundle
> start-level="30">file:system/com/ca/node/commons-io.jar</bundle>
>                                                                 <bundle
> start-level="30">file:system/com/ca/node/org.apache.servicemix.bundles.bcprov-jdk16.jar</bundle>
>
>                                                                 <bundle
> start-level="30">file:system/com/ca/node/h2.jar</bundle>
>                                                                 <bundle
> start-level="40">file:system/com/ca/node/org.apache.tuscany.sdo.jar</bundle>
>
>                                                                 <bundle
> start-level="40">file:system/com/ca/node/commons-codec-1.6.jar</bundle>
>
> <configfile finalname="/etc/registryconfig.properties" override="true" >
>
>    file:system/etc/registryconfig.properties
>                                                      </configfile>
>                                                                 <config
> name="org.ops4j.pax.logging">
>
> log4j.logger.com.ca.registry=DEBUG,
> registry
>
>
> log4j.appender.registry=org.apache.log4j.RollingFileAppender
>
> log4j.appender.registry.layout=org.apache.log4j.PatternLayout
>
> log4j.appender.registry.layout.ConversionPattern=%d{yyyy-MM-dd
> HH:mm:ss,SSS} %p  [%t] %c{2} -%X{bundle.id}-%X{bundle.name}-%X{bundle.version}
> - %m. %n
>
> log4j.appender.registry.file=${karaf.data}/log/registry.log
>
> log4j.appender.registry.append=true
>
> log4j.appender.registry.maxFileSize=10MB
>
> log4j.appender.registry.maxBackupIndex=20
>                                                                 </config>
>                                                 </feature>
>                                 </features>
>
>
>
>
>
> Regards
> Raman
>



-- 

Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
OPS4J Pax for Vaadin <http://team.ops4j.org/wiki/display/PAXVAADIN/Home>
Commiter & Project Lead
blog <http://notizblog.nierbeck.de/>

Reply via email to