I'm encountering what I think is exactly the same issue in a vanilla 4.0.5.
Once my logging fragment is installed any subsequent feature installation
results in a partial framework restart, and a re-display of the console
banner.
If I do a verbose installation of (in this case webconsole) then I see
...
No deployment change.
Stopping bundles:
org.ops4j.pax.logging.pax-logging-service/1.8.5
Refreshing bundles:
org.ops4j.pax.logging.pax-logging-service/1.8.5 (Attached fragments
changed: [])
Starting bundles:
org.ops4j.pax.logging.pax-logging-service/1.8.5
...
I did some debugging and found that in
org.apache.karaf.features.internal.service.Deployer.computeBundlesToRefresh()
the 'newFragments' that are calculated for the pax logging bundle don't
include the fragment. The 'oldFragments' variable does include the bundle,
so a change is flagged & the pax logging bundle is restarted.
The content of the fragment (beyond the manifest) is irrelevant - a fragment
containing no classes also causes this behaviour.
I also found that the same behaviour is exhibited if the fragment is
installed as any other bundle, rather than via startup.properties. The
fragment also works in this scenario, so I wonder if the advice in the
manual to install via startup is out of date?
Thanks for any advice on this.
Paul
--
View this message in context:
http://karaf.922171.n3.nabble.com/Karaf-4-0-5-Strange-console-log-messages-when-using-custom-log-appenders-tp4046563p4047053.html
Sent from the Karaf - User mailing list archive at Nabble.com.