com.ibm.ras
Class RASConsoleHandler
java.lang.Object
|
+--com.ibm.ras.RASObject
|
+--com.ibm.ras.RASHandler
|
+--com.ibm.ras.RASConsoleHandler
- public class RASConsoleHandler
- extends RASHandler
RASConsoleHandler
implements a RASHandler
that writes to the console (System.out
).
- See Also:
RASHandler
Method Summary |
void |
openDevice()
Opens the device to which the handler will send its log entries. |
Methods inherited from class com.ibm.ras.RASHandler |
addFormatter,
addMaskChangeListener,
getConfig,
getFormatters,
getMaskChangeListeners,
getMessageMask,
getTraceMask,
logEvent,
removeFormatter,
removeMaskChangeListener,
run,
setConfig,
setMessageMask,
setTraceMask,
stop,
writeEvent |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
RASConsoleHandler
public RASConsoleHandler()
- Creates a
RASConsoleHandler
. The name and
description of this object are empty strings.
RASConsoleHandler
public RASConsoleHandler(java.lang.String name)
- Creates a
RASConsoleHandler
. The description
of this object is an empty string.
- Parameters:
name
- The name of this object.
RASConsoleHandler
public RASConsoleHandler(java.lang.String name,
java.lang.String desc)
- Creates a
RASConsoleHandler
.
- Parameters:
name
- The name of this object.desc
- The description of this object.
openDevice
public void openDevice()
- Opens the device to which the handler will send its log entries.
If an error occurs during this process, the handler will write a
message to
System.err
.
The caller should ensure that this method is not called if the device
is already open or if cannot tolerate attempts to reopen it.
For the RASConsoleHandler
, the device is
System.out
.
- Overrides:
- openDevice in class RASHandler