|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.OutputStream java.io.FilterOutputStream java.io.PrintStream java.rmi.server.LogStream
LogStream
provides a mechanism for logging errors that are
of possible interest to those monitoring a system.
Field Summary | |
static int |
BRIEF
Deprecated. log level constant (brief logging). |
private StringBuffer |
buffer
Deprecated. string buffer used for constructing log message prefixes |
private ByteArrayOutputStream |
bufOut
Deprecated. stream used for buffering lines |
private static PrintStream |
defaultStream
Deprecated. default output stream for new logs |
private static Hashtable |
known
Deprecated. table mapping known log names to log stream objects |
private OutputStream |
logOut
Deprecated. stream where output of this log is sent to |
private OutputStreamWriter |
logWriter
Deprecated. string writer for writing message prefixes to log stream |
private String |
name
Deprecated. log name for this log |
static int |
SILENT
Deprecated. log level constant (no logging). |
static int |
VERBOSE
Deprecated. log level constant (verbose logging). |
Fields inherited from class java.io.PrintStream |
|
Fields inherited from class java.io.FilterOutputStream |
out |
Constructor Summary | |
private |
LogStream(String name,
OutputStream out)
Deprecated. no replacement |
Method Summary | |
static PrintStream |
getDefaultStream()
Deprecated. no replacement |
OutputStream |
getOutputStream()
Deprecated. no replacement |
static LogStream |
log(String name)
Deprecated. no replacement |
static int |
parseLevel(String s)
Deprecated. no replacement |
static void |
setDefaultStream(PrintStream newDefault)
Deprecated. no replacement |
void |
setOutputStream(OutputStream out)
Deprecated. no replacement |
String |
toString()
Deprecated. no replacement |
void |
write(byte[] b,
int off,
int len)
Deprecated. no replacement |
void |
write(int b)
Deprecated. no replacement |
Methods inherited from class java.io.PrintStream |
checkError, close, flush, print, print, print, print, print, print, print, print, print, println, println, println, println, println, println, println, println, println, println, setError |
Methods inherited from class java.io.FilterOutputStream |
write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static Hashtable known
private static PrintStream defaultStream
private String name
private OutputStream logOut
private OutputStreamWriter logWriter
private StringBuffer buffer
private ByteArrayOutputStream bufOut
public static final int SILENT
public static final int BRIEF
public static final int VERBOSE
Constructor Detail |
private LogStream(String name, OutputStream out)
name
- string identifying messages from this logMethod Detail |
public static LogStream log(String name)
name
- name identifying the desired LogStream
public static PrintStream getDefaultStream()
setDefaultStream(java.io.PrintStream)
public static void setDefaultStream(PrintStream newDefault)
newDefault
- new default log streamgetDefaultStream()
public OutputStream getOutputStream()
setOutputStream(java.io.OutputStream)
public void setOutputStream(OutputStream out)
out
- new output stream for this loggetOutputStream()
public void write(int b)
write
in class PrintStream
b
- The byte to be writtenPrintStream.print(char)
,
PrintStream.println(char)
public void write(byte[] b, int off, int len)
write
in class PrintStream
b
- A byte arrayoff
- Offset from which to start taking byteslen
- Number of bytes to writepublic String toString()
toString
in class Object
public static int parseLevel(String s)
s
- name of logging level (e.g., 'SILENT', 'BRIEF', 'VERBOSE')
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |