public class

LogStream

extends PrintStream
java.lang.Object
   ↳ java.io.OutputStream
     ↳ java.io.FilterOutputStream
       ↳ java.io.PrintStream
         ↳ java.rmi.server.LogStream

This class is deprecated.
no replacement

Class Overview

LogStream provides a mechanism for logging errors that are of possible interest to those monitoring a system.

Summary

Constants
int BRIEF log level constant (brief logging).
int SILENT log level constant (no logging).
int VERBOSE log level constant (verbose logging).
[Expand]
Inherited Fields
From class java.io.FilterOutputStream
Public Methods
synchronized static PrintStream getDefaultStream()
This method is deprecated. no replacement
synchronized OutputStream getOutputStream()
This method is deprecated. no replacement
static LogStream log(String name)
This method is deprecated. no replacement
static int parseLevel(String s)
This method is deprecated. no replacement
synchronized static void setDefaultStream(PrintStream newDefault)
This method is deprecated. no replacement
synchronized void setOutputStream(OutputStream out)
This method is deprecated. no replacement
String toString()
This method is deprecated. no replacement
void write(byte[] b, int off, int len)
This method is deprecated. no replacement
void write(int b)
This method is deprecated. no replacement
[Expand]
Inherited Methods
From class java.io.PrintStream
From class java.io.FilterOutputStream
From class java.io.OutputStream
From class java.lang.Object
From interface java.io.Closeable
From interface java.io.Flushable
From interface java.lang.Appendable

Constants

public static final int BRIEF

log level constant (brief logging).

Constant Value: 10 (0x0000000a)

public static final int SILENT

log level constant (no logging).

Constant Value: 0 (0x00000000)

public static final int VERBOSE

log level constant (verbose logging).

Constant Value: 20 (0x00000014)

Public Methods

public static synchronized PrintStream getDefaultStream ()

This method is deprecated.
no replacement

Return the current default stream for new logs.

Returns
  • default log stream

public synchronized OutputStream getOutputStream ()

This method is deprecated.
no replacement

Return the current stream to which output from this log is sent.

Returns
  • output stream for this log

public static LogStream log (String name)

This method is 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.

Parameters
name name identifying the desired LogStream
Returns
  • log associated with given name

public static int parseLevel (String s)

This method is deprecated.
no replacement

Convert a string name of a logging level to its internal integer representation.

Parameters
s name of logging level (e.g., 'SILENT', 'BRIEF', 'VERBOSE')
Returns
  • corresponding integer log level

public static synchronized void setDefaultStream (PrintStream newDefault)

This method is deprecated.
no replacement

Set the default stream for new logs.

Parameters
newDefault new default log stream

public synchronized void setOutputStream (OutputStream out)

This method is deprecated.
no replacement

Set the stream to which output from this log is sent.

Parameters
out new output stream for this log

public String toString ()

This method is deprecated.
no replacement

Return log name as string representation.

Returns
  • log name

public void write (byte[] b, int off, int len)

This method is deprecated.
no replacement

Write a subarray of bytes. Pass each through write byte method.

Parameters
b A byte array
off Offset from which to start taking bytes
len Number of bytes to write

public void write (int b)

This method is 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.

Parameters
b The byte to be written