Deprecated.
no replacement
@Deprecated public class LogStream extends PrintStream
LogStream
provides a mechanism for logging errors that are of possible interest to those monitoring a system.
public static final int SILENT
Deprecated.
log level constant (no logging).
public static final int BRIEF
Deprecated.
log level constant (brief logging).
public static final int VERBOSE
Deprecated.
log level constant (verbose logging).
@Deprecated public static LogStream log(String name)
Deprecated. no replacement
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.
name
- name identifying the desired LogStream@Deprecated public static PrintStream getDefaultStream()
Deprecated. no replacement
Return the current default stream for new logs.
setDefaultStream(java.io.PrintStream)
@Deprecated public static void setDefaultStream(PrintStream newDefault)
Deprecated. no replacement
Set the default stream for new logs.
newDefault
- new default log streamgetDefaultStream()
@Deprecated public OutputStream getOutputStream()
Deprecated. no replacement
Return the current stream to which output from this log is sent.
setOutputStream(java.io.OutputStream)
@Deprecated public void setOutputStream(OutputStream out)
Deprecated. no replacement
Set the stream to which output from this log is sent.
out
- new output stream for this loggetOutputStream()
@Deprecated public void write(int b)
Deprecated. no replacement
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.
write
in class PrintStream
b
- The byte to be writtenPrintStream.print(char)
, PrintStream.println(char)
@Deprecated public void write(byte[] b, int off, int len)
Deprecated. no replacement
Write a subarray of bytes. Pass each through write byte method.
write
in class PrintStream
b
- A byte arrayoff
- Offset from which to start taking byteslen
- Number of bytes to writeFilterOutputStream.write(int)
@Deprecated public String toString()
Deprecated. no replacement
Return log name as string representation.
@Deprecated public static int parseLevel(String s)
Deprecated. no replacement
Convert a string name of a logging level to its internal integer representation.
s
- name of logging level (e.g., 'SILENT', 'BRIEF', 'VERBOSE')
© 1993–2017, 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.