@Deprecated public class LogStream extends PrintStream
LogStream provides a mechanism for logging errors that are of possible interest to those monitoring a system.
| Modifier and Type | Field and Description |
|---|---|
static int |
BRIEF
Deprecated.
log level constant (brief logging).
|
static int |
SILENT
Deprecated.
log level constant (no logging).
|
static int |
VERBOSE
Deprecated.
log level constant (verbose logging).
|
out| Modifier and Type | Method and Description |
|---|---|
static PrintStream |
getDefaultStream()
Deprecated.
no replacement
|
OutputStream |
getOutputStream()
Deprecated.
no replacement
|
static LogStream |
log(String
Deprecated.
no replacement
|
static int |
parseLevel(String
Deprecated.
no replacement
|
static void |
setDefaultStream(PrintStream
Deprecated.
no replacement
|
void |
setOutputStream(OutputStream
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
|
append, append, append, checkError, clearError, close, flush, format, format, print, print, print, print, print, print, print, print, print, printf, printf, println, println, println, println, println, println, println, println, println, println, setErrorwritepublic static final int SILENT
public static final int BRIEF
public static final int VERBOSE
@Deprecated public static LogStreamlog(String name)
name - name identifying the desired LogStream
@Deprecated public static PrintStreamgetDefaultStream()
setDefaultStream(java.io.PrintStream)
@Deprecated public static void setDefaultStream(PrintStreamnewDefault)
newDefault - new default log stream
getDefaultStream()
@Deprecated public OutputStreamgetOutputStream()
setOutputStream(java.io.OutputStream)
@Deprecated public void setOutputStream(OutputStreamout)
out - new output stream for this log
getOutputStream()
@Deprecated public void write(int b)
write in class
PrintStream
b - The byte to be written
PrintStream.print(char) ,
PrintStream.println(char)
@Deprecated public void write(byte[] b, int off, int len)
write in class
PrintStream
b - A byte array
off - Offset from which to start taking bytes
len - Number of bytes to write
FilterOutputStream.write(int)
@Deprecated public StringtoString()
@Deprecated public static int parseLevel(Strings)
s - name of logging level (e.g., 'SILENT', 'BRIEF', 'VERBOSE')