Hi

Am 18.06.2013 um 13:01 schrieb Roland:

> You mean I have to implement the white-board-pattern for any logger, do you?
> Each bundle registers a logservice. But this is incompatible to my
> logback-architecture, i think. Let me think about...

How do you use loggers ? As a service or the traditional SLF4J style "Logger l 
= LoggerFactory.getLogger("")" ?

Assuming the SLF4J way for now:

First thing: This call will only succeed if the API is available at all. Of 
course the API may use some stdout logging because the implementation might 
still be missing.

What we do here is leveraging start levels: We deploy the logging 
infrastructure at start level 1 and make sure all other bundles are deployed at 
higher start levels -- by either explicitly setting the start level or using a 
default start level of, say, 20.

If you are usig a LogService, you have to get the LogService and cope with the 
situation of the service not available (yet). Again, this can be mitigated by 
using start levels in your deployment.

Regards
Felix

> 
> 
> 
> --
> View this message in context: 
> http://apache-felix.18485.x6.nabble.com/Best-Practice-System-Startup-tp5003987p5004001.html
> Sent from the Apache Felix - Users mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to