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 ...

Get OSGi and Equinox now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.