7.1. The Log Service

The main purpose of the Log service is to record events and errors, and to retrieve them afterward. Unlike desktop systems, residential gateways usually do not have conventional input/output devices such as keyboard and display. As a result, when an error occurs in the framework, we often cannot hope to display an error message to the user and get his intervention to correct the erroneous condition.

The Log service is a good place to save error and other messages so that remote administrators can analyze them either manually or through the use of a tool. The Log bundle registers two services: LogService for writing logs and LogReaderService for retrieving them.

7.1.1. Using LogService to Write Logs

To use LogService, your ...

Get Programming Open Service Gateways with Java Embedded Server™ Technology 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.