Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

14. Pitfalls and Troubleshooting > Troubleshooting tips

Troubleshooting tips

When encountering an error, or when the application is not behaving the way you're expecting it to, you engage in the exercise of hunting the problem down and trying to find its root cause in order to fix it.

The following gives a few tips to help you troubleshoot issues you may encounter during the development and testing of a bundle on an OSGi framework, in general, or on Felix, in specific.

How to get debug logs from the Felix Log Service

Although the OSGi specifications provide a clear definition of how to log messages with a Log Service, it does not set any constraint on how to configure the Log Service filter levels. This is normal, as it is specific to the implementation.

The configuration of the level of logs that's included in a Log Reader Service implementation differs among providers. The Apache Felix Log Service properties are configured in the config.properties file under the config directory of the Felix framework instance. The properties are as follows:


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint