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