2.2 Logging Support

The second ancillary component which is required by the reactor is a message logger. There are a number of Java logging frameworks available and the choice of the `best' logging framework will differ between applications. Therefore the logging functionality has been factored out of the reactor core. Different logging framework wrappers can therefore be provided as part of the utility package. The common logging interface is defined as shown in Listing 2.2.


\begin{listing}
% latex2html id marker 361\begin{verbatim}package com.zynapt...
...d{verbatim}
\caption{Interface Definition for Reactor Log Target}
\end{listing}

The common logging interface is a fairly standard logging API, providing a set of defined log message severity levels and some methods for logging messages at one of these severity levels. This can easily be mapped onto existing logging frameworks using one of the wrappers described in the following subsections.



Subsections