O'Reilly logo

OSGi and Equinox by Simon Archer, Paul VanderLei, Jeff McAffer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 17. Logging

The OSGi Log Service specification describes a way for a bundle to log messages. Logging is important for users, application administrators, support teams, and developers, regardless of the application domain. In this chapter we cover the following topics:

• The logging services defined by the OSGi specification

• Writing to, reading from, and being a listener of a log

• How logging is done in Toast

• Richer logging using Equinox’s extended log service

17.1 The Log Service Specification

The OSGi Log Service specification describes two services. The first is the LogService used to write log messages, and the second is the LogReaderService used to read log messages; these services are a pair, potentially backed by a single ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required