![]() |
Grace Software
JavaLog
$Revision: 1.3 $
$Date: 1999/10/11 00:05:12 $
|
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.