All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class java.rmi.server.LogStream

java.lang.Object
   |
   +----java.io.OutputStream
           |
           +----java.io.FilterOutputStream
                   |
                   +----java.io.PrintStream
                           |
                           +----java.rmi.server.LogStream

public class LogStream
extends PrintStream
LogStream presents a mechanism for logging errors that are of possible interest to those monitoring the system.


Variable Index

 o BRIEF
 o SILENT
constants for logging levels
 o VERBOSE

Method Index

 o getDefaultStream()
Return the current default stream for new logs.
 o getOutputStream()
Return the current stream to which output from this log is sent.
 o log(String)
Return the LogStream identified by the given name.
 o parseLevel(String)
Convert a string name of a logging level to its internal integer representation.
 o setDefaultStream(PrintStream)
Set the default stream for new logs.
 o setOutputStream(OutputStream)
Set the stream to which output from this log is sent.
 o toString()
Return log name as string representation
 o write(byte[], int, int)
Write a subarray of bytes.
 o write(int)
Write a byte of data to the stream.

Variables

 o SILENT
Properties Public Constant 
   SILENT=int 
constants for logging levels

 o BRIEF
Properties Public Constant 
   BRIEF=int 
 o VERBOSE
Properties Public Constant 
   VERBOSE=int 

Methods

 o log
    method log(name=String) returns LogStream public  static   
Return the LogStream identified by the given name. If a log corresponding to "name" does not exist, a log using the default stream is created.

 o getDefaultStream
    method getDefaultStream() returns PrintStream public  static  protect 
Return the current default stream for new logs.

 o setDefaultStream
    method setDefaultStream(newDefault=PrintStream)  public  static  protect 
Set the default stream for new logs.

 o getOutputStream
    method getOutputStream() returns OutputStream public    protect 
Return the current stream to which output from this log is sent.

 o setOutputStream
    method setOutputStream(out=OutputStream)  public    protect 
Set the stream to which output from this log is sent.

 o write
    method write(b=int)  public     
Write a byte of data to the stream. If it is not a newline, then the byte is appended to the internal buffer. If it is a newline, then the currently buffered line is sent to the log's output stream, prefixed with the appropriate logging information.

Overrides:
write in class PrintStream
 o write
    method write(b=byte[], -
                 off=int, -
                 len=int)  public     
Write a subarray of bytes. Pass each through write byte method.

Overrides:
write in class PrintStream
 o toString
    method toString() returns String public     
Return log name as string representation

Overrides:
toString in class Object
 o parseLevel
    method parseLevel(s=String) returns int public  static   
Convert a string name of a logging level to its internal integer representation.


All Packages  Class Hierarchy  This Package  Previous  Next  Index