Code Controls
Grace Software
JavaLog

$Revision: 1.3 $
$Date: 1999/10/11 00:05:12 $
This page is currently under construction

Introduction

The following functions control the run-time operation of the Log Facility. These functions will override the default configuration as well as the user properties specified on the command line. These functions are accessible only by Java, currently. There is also no ability currently to alter the log format or perform more advanced filtering at run-time.
public static void enableErrors(boolean);
public static void enableWarnings(boolean);
public static void enableNotices(boolean);
public static void enableTraces(boolean);
Additionally, the Log Facility can be configured, in Java, to use a different or another Handler.  A Handler is class that takes log Events and writes them or displays them to the particular log device.  A Handler can be installed in the Log Facility using the call:
    MyHandler handler = new MyHandler();
    Log.addHandler(handler, "errors");
    Log.addHandler(handler, "errors");
In this case, one instance of MyHandler was added to handle errors and warnings.