Re: How to set default logger

2013-09-06 Thread Roland
Perhaps it should be documented which logger-class has to be used. http://felix.apache.org/site/apache-felix-framework-configuration-properties.html -- View this message in context: http://apache-felix.18485.x6.nabble.com/How-to-set-default-logger-tp5004867p5004881.html Sent from the Apache Fel

Re: How to set default logger

2013-09-06 Thread Roland
Thank you so much! -- View this message in context: http://apache-felix.18485.x6.nabble.com/How-to-set-default-logger-tp5004867p5004886.html Sent from the Apache Felix - Users mailing list archive at Nabble.com. - To unsubscri

Re: How to set default logger

2013-09-06 Thread Richard S. Hall
On 9/6/13 11:03 , Roland wrote: Perhaps it should be documented which logger-class has to be used. http://felix.apache.org/site/apache-felix-framework-configuration-properties.html I modified that page to refer to the fully qualified class name. -> richard -- View this message in context:

Re: How to set default logger

2013-09-06 Thread Richard S. Hall
On 9/6/13 10:07 , Roland wrote: I'm wondering because the framework always writes to sdtout, instead of using the LogService. I already explained that the framework doesn't use a LogService. It never does. We tried to do so many, many years ago and it was too problematic. The Felix framework

Re: How to set default logger

2013-09-06 Thread Roland
I'm wondering because the framework always writes to sdtout, instead of using the LogService. -- View this message in context: http://apache-felix.18485.x6.nabble.com/How-to-set-default-logger-tp5004867p5004877.html Sent from the Apache Felix - Users mailing list archive at Nabble.com. ---

Re: How to set default logger

2013-09-06 Thread Richard S. Hall
On 9/6/13 09:53 , Roland wrote: The Logger tries to load the LogService interface. Once the logger is initialized it will never check this a second time. public Logger(BundleContext context) { m_context = context; try { org.osgi.service.log.LogSe

Re: How to set default logger

2013-09-06 Thread Roland
Thank you for the well explained answer. -- View this message in context: http://apache-felix.18485.x6.nabble.com/How-to-set-default-logger-tp5004867p5004879.html Sent from the Apache Felix - Users mailing list archive at Nabble.com.

Re: How to set default logger

2013-09-06 Thread Neil Bartlett
What are you actually trying to do? If you just want to write log messages from your bundle, you should use the LogService and not worry about Felix internals. Neil On Fri, Sep 6, 2013 at 2:53 PM, Roland wrote: > The Logger tries to load the LogService interface. Once the logger is > initialize

Re: How to set default logger

2013-09-06 Thread Roland
The Logger tries to load the LogService interface. Once the logger is initialized it will never check this a second time. public Logger(BundleContext context) { m_context = context; try { org.osgi.service.log.LogService.class.getName(); m_isL

Re: How to set default logger

2013-09-06 Thread Richard S. Hall
On 9/6/13 08:59 , Roland wrote: Does it mean that I should export the LogService-interface with FRAMEWORK_SYSTEMPACKAGES_EXTRA? Otherwise it makes no sense to me. Not sure what you mean, the framework doesn't use a logging service, it uses an instance of org.apache.felix.framework.Logger. ->

Re: How to set default logger

2013-09-06 Thread Roland
Does it mean that I should export the LogService-interface with FRAMEWORK_SYSTEMPACKAGES_EXTRA? Otherwise it makes no sense to me. Thanks!! -- View this message in context: http://apache-felix.18485.x6.nabble.com/How-to-set-default-logger-tp5004867p5004873.html Sent from the Apache Felix - Use

Re: START_TRANSIENT_ERROR is 10 but BundleException typ is set to 0

2013-09-06 Thread Roland
https://issues.apache.org/jira/browse/FELIX-4220 Richard S. Hall wrote > On 9/6/13 04:45 , Roland wrote: >> Hello Felix-experts, >> >> I got a BundleException "Cannot start bundle xyz because its start level >> is >> 3, which is greater than the framework's start level of 1." After the >> excep

Re: How to set default logger

2013-09-06 Thread Richard S. Hall
On 9/6/13 08:42 , Roland wrote: Hello Felix-experts! The org.apache.felix.utils.log.Logger can only be instanciated without using the fallbacklogger (stdout,stderr) if a bundle exports the LogService interface, isn't it? How can I set felix.log.logger at runtime after calling the felix-constructo

How to set default logger

2013-09-06 Thread Roland
Hello Felix-experts! The org.apache.felix.utils.log.Logger can only be instanciated without using the fallbacklogger (stdout,stderr) if a bundle exports the LogService interface, isn't it? How can I set felix.log.logger at runtime after calling the felix-constructor? http://felix.apache.org/site/a

Re: How to improve the start time of Apache Felix

2013-09-06 Thread Richard S. Hall
On 9/6/13 05:27 , Roland wrote: Is it possible to start the framework and the cached bundles concurrently? I'm not optimistic: https://issues.apache.org/jira/browse/FELIX-3034 -> richard -- View this message in context: http://apache-felix.18485.x6.nabble.com/How-to-improve-the-star

Re: START_TRANSIENT_ERROR is 10 but BundleException typ is set to 0

2013-09-06 Thread Richard S. Hall
On 9/6/13 04:45 , Roland wrote: Hello Felix-experts, I got a BundleException "Cannot start bundle xyz because its start level is 3, which is greater than the framework's start level of 1." After the exception was thrown I checked the Exception-type and I got 0 but I expected START_TRANSIENT_ERRO

Re: How to improve the start time of Apache Felix

2013-09-06 Thread Roland
Neither JVM-option -client, nor the Bundle-ActivationPolicy lazy has significant speed advantages. I stopping here and I focus my activity on reducing dependencies. -- View this message in context: http://apache-felix.18485.x6.nabble.com/How-to-improve-the-start-time-of-Apache-Felix-tp5004833p5

Re: How to improve the start time of Apache Felix

2013-09-06 Thread Roland
I am currently in contact with the developers of log4j2. I'll create a patch over the weekend, which slims log4j2 to a lightweight bundle with as few dependencies. -- View this message in context: http://apache-felix.18485.x6.nabble.com/How-to-improve-the-start-time-of-Apache-Felix-tp5004833p50

Re: How to improve the start time of Apache Felix

2013-09-06 Thread Marcel Offermans
On Sep 6, 2013, at 11:27 AM, Roland wrote: > Is it possible to start the framework and the cached bundles concurrently? No, and yes. If you want to do things concurrently, move any work you're doing in the start() method of the bundle activator to a new thread (or some executor service that ma

Re: How to improve the start time of Apache Felix

2013-09-06 Thread Marcel Offermans
On Sep 6, 2013, at 9:05 AM, Roland wrote: > The biggest problem is loading of third-party-bundles. Foremost, the loading > of log4j2 is slow because this bundle has many dependencies. Although most > dependencies are declared as optional, I need them to resolve dependencies. Ditch log4j2 for a s

Re: How to improve the start time of Apache Felix

2013-09-06 Thread Roland
Is it possible to start the framework and the cached bundles concurrently? -- View this message in context: http://apache-felix.18485.x6.nabble.com/How-to-improve-the-start-time-of-Apache-Felix-tp5004833p5004859.html Sent from the Apache Felix - Users mailing list archive at Nabble.com. --

START_TRANSIENT_ERROR is 10 but BundleException typ is set to 0

2013-09-06 Thread Roland
Hello Felix-experts, I got a BundleException "Cannot start bundle xyz because its start level is 3, which is greater than the framework's start level of 1." After the exception was thrown I checked the Exception-type and I got 0 but I expected START_TRANSIENT_ERROR (10). Am I wrong? Thanks & Rega

Re: How to improve the start time of Apache Felix

2013-09-06 Thread Roland
The biggest problem is loading of third-party-bundles. Foremost, the loading of log4j2 is slow because this bundle has many dependencies. Although most dependencies are declared as optional, I need them to resolve dependencies. -- View this message in context: http://apache-felix.18485.x6.nabbl