Class LogStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
java.io.PrintStream
java.rmi.server.LogStream
- All Implemented Interfaces:
Closeable
,Flushable
,Appendable
,AutoCloseable
Deprecated.
no replacement
LogStream
provides a mechanism for logging errors that are
of possible interest to those monitoring a system.- Since:
- 1.1
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Deprecated.log level constant (brief logging).static final int
Deprecated.log level constant (no logging).static final int
Deprecated.log level constant (verbose logging).Fields declared in class java.io.FilterOutputStream
out
-
Method Summary
Modifier and TypeMethodDescriptionstatic PrintStream
Deprecated.no replacementDeprecated.no replacementstatic LogStream
Deprecated.no replacementstatic int
parseLevel
(String s) Deprecated.no replacementstatic void
setDefaultStream
(PrintStream newDefault) Deprecated.no replacementvoid
Deprecated.no replacementtoString()
Deprecated.no replacementvoid
write
(byte[] b, int off, int len) Deprecated.no replacementvoid
write
(int b) Deprecated.no replacementMethods declared in class java.io.PrintStream
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
Methods declared in class java.io.OutputStream
nullOutputStream
-
Field Details
-
SILENT
public static final int SILENTDeprecated.log level constant (no logging).- See Also:
-
BRIEF
public static final int BRIEFDeprecated.log level constant (brief logging).- See Also:
-
VERBOSE
public static final int VERBOSEDeprecated.log level constant (verbose logging).- See Also:
-
-
Method Details
-
log
Deprecated.no replacementReturn 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
- Since:
- 1.1
-
getDefaultStream
Deprecated.no replacementReturn the current default stream for new logs.- Returns:
- default log stream
- Since:
- 1.1
- See Also:
-
setDefaultStream
Deprecated.no replacementSet the default stream for new logs.- Parameters:
newDefault
- new default log stream- Since:
- 1.1
- See Also:
-
getOutputStream
Deprecated.no replacementReturn the current stream to which output from this log is sent.- Returns:
- output stream for this log
- Since:
- 1.1
- See Also:
-
setOutputStream
Deprecated.no replacementSet the stream to which output from this log is sent.- Parameters:
out
- new output stream for this log- Since:
- 1.1
- See Also:
-
write
Deprecated.no replacementWrite 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.- Overrides:
write
in classPrintStream
- Parameters:
b
- The byte to be written- Since:
- 1.1
- See Also:
-
write
Deprecated.no replacementWrite a subarray of bytes. Pass each through write byte method.- Overrides:
write
in classPrintStream
- Parameters:
b
- A byte arrayoff
- Offset from which to start taking byteslen
- Number of bytes to write- Since:
- 1.1
- See Also:
-
toString
Deprecated.no replacementReturn log name as string representation. -
parseLevel
Deprecated.no replacementConvert 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
- Since:
- 1.1
-