Closeable
, Flushable
, Appendable
, AutoCloseable
@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 | Description |
---|---|---|
static final int |
BRIEF |
Deprecated. log level constant (brief logging). |
static final int |
SILENT |
Deprecated. log level constant (no logging). |
static final int |
VERBOSE |
Deprecated. log level constant (verbose logging). |
out
Modifier and Type | Method | Description |
---|---|---|
static PrintStream |
getDefaultStream() |
Deprecated. no replacement |
OutputStream |
getOutputStream() |
Deprecated. no replacement |
static LogStream |
log |
Deprecated. no replacement |
static int |
parseLevel |
Deprecated. no replacement |
static void |
setDefaultStream |
Deprecated. no replacement |
void |
setOutputStream |
Deprecated. no replacement |
String |
toString() |
Deprecated. no replacement |
void |
write |
Deprecated. no replacement |
void |
write |
Deprecated. no replacement |
append, append, append, charset, 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, setError, write, writeBytes
nullOutputStream
public static final int SILENT
public static final int BRIEF
public static final int VERBOSE
@Deprecated public static LogStream log(String name)
name
- name identifying the desired LogStream@Deprecated public static PrintStream getDefaultStream()
@Deprecated public static void setDefaultStream(PrintStream newDefault)
newDefault
- new default log stream@Deprecated public OutputStream getOutputStream()
@Deprecated public void setOutputStream(OutputStream out)
out
- new output stream for this log@Deprecated public void write(int b)
write
in class PrintStream
b
- The byte to be written@Deprecated 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 write@Deprecated public String toString()
@Deprecated public static int parseLevel(String s)
s
- name of logging level (e.g., 'SILENT', 'BRIEF', 'VERBOSE')
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/java.rmi/java/rmi/server/LogStream.html