Modifier and Type | Class and Description |
---|---|
private static class | Log.
Subclass of StreamHandler for redirecting log output. |
private static interface | Log.
factory interface enables Logger and LogStream implementations |
private static class | Log.
Class specialized to log messages to the java.util.logging API |
private static class | Log.
Factory to create Log objects which deliver log messages to the java.util.logging API. |
private static class | Log.
PrintStream which forwards log messages to the logger. |
private static class | Log.
Class specialized to log messages to the java.rmi.server.LogStream API |
private static class | Log.
Factory to create Log objects which deliver log messages to the java.rmi.server.LogStream API |
Modifier and Type | Field and Description |
---|---|
public static final Level | BRIEF
Logger re-definition of old RMI log values |
private static final Log. | |
public static final Level | |
private static final StackWalker |
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
public static Log | |
public static Log | |
public abstract PrintStream | |
private static StackWalker. | |
public abstract boolean | |
public abstract void | |
public abstract void | |
public abstract void |
BRIEF | back to summary |
---|---|
public static final Level BRIEF Logger re-definition of old RMI log values |
logFactory | back to summary |
---|---|
private static final Log. |
VERBOSE | back to summary |
---|---|
public static final Level VERBOSE |
WALKER | back to summary |
---|---|
private static final StackWalker WALKER |
Log | back to summary |
---|---|
public Log() |
getLog | back to summary |
---|---|
public static Log getLog(String loggerName, String oldLogName, int override) Access log for a tri-state system property. Need to first convert override value to a log level, taking care to interpret a range of values between BRIEF, VERBOSE and SILENT. An override < 0 is interpreted to mean that the logging configuration should not be overridden. The level passed to the factories createLog method will be null in this case. Note that if oldLogName is null and old logging is on, the returned LogStreamLog will ignore the override parameter - the log will never log messages. This permits new logs that only write to Loggers to do nothing when old logging is active. Do not call getLog multiple times on the same logger name. Since this is an internal API, no checks are made to ensure that multiple logs do not exist for the same logger. |
getLog | back to summary |
---|---|
public static Log getLog(String loggerName, String oldLogName, boolean override) Access logs associated with boolean properties Do not call getLog multiple times on the same logger name. Since this is an internal API, no checks are made to ensure that multiple logs do not exist for the same logger. |
getPrintStream | back to summary |
---|---|
public abstract PrintStream getPrintStream() |
getSource | back to summary |
---|---|
private static StackWalker. Obtain stack frame of code calling a log method. |
isLoggable | back to summary |
---|---|
public abstract boolean isLoggable(Level level) "logger like" API to be used by RMI implementation |
log | back to summary |
---|---|
public abstract void log(Level level, String message) |
log | back to summary |
---|---|
public abstract void log(Level level, String message, Throwable thrown) |
setOutputStream | back to summary |
---|---|
public abstract void setOutputStream(OutputStream stream) get and set the RMI server call output stream |
Access | Constructor and Description |
---|---|
pack-priv |
Modifier and Type | Method and Description |
---|---|
public void | |
public void | publish(LogRecord
description of the log event. A null record is
silently ignored and is not published record)Overrides java. Format and publish a |
InternalStreamHandler | back to summary |
---|---|
pack-priv InternalStreamHandler(OutputStream out) |
close | back to summary |
---|---|
public void close() Overrides java. Doc from java. Close the current output stream.
The |
publish | back to summary |
---|---|
public void publish(LogRecord record) Overrides java. Doc from java. Format and publish a
The
If this is the first
|
Modifier and Type | Method and Description |
---|---|
public Log |
createLog | back to summary |
---|---|
public Log createLog(String loggerName, String oldLogName, Level level) |
Modifier and Type | Field and Description |
---|---|
private static final Handler | |
private Log. | copyHandler
handler to which messages are copied |
private final Logger | |
private Log. |
Access | Constructor and Description |
---|---|
private |
Modifier and Type | Method and Description |
---|---|
public synchronized PrintStream | |
public boolean | isLoggable(Level level)
Implements abstract sun. "logger like" API to be used by RMI implementation |
public void | |
public void | |
public synchronized void | setOutputStream(OutputStream out)
Implements abstract sun. Set the output stream associated with the RMI server call logger. |
public String |
alternateConsole | back to summary |
---|---|
private static final Handler alternateConsole
|
copyHandler | back to summary |
---|---|
private Log. handler to which messages are copied |
logger | back to summary |
---|---|
private final Logger logger |
loggerSandwich | back to summary |
---|---|
private Log. |
LoggerLog | back to summary |
---|---|
private LoggerLog(final Logger logger, final Level level) creates a Log which will delegate to the given logger
|
getPrintStream | back to summary |
---|---|
public synchronized PrintStream getPrintStream() Implements abstract sun. |
isLoggable | back to summary |
---|---|
public boolean isLoggable(Level level) Implements abstract sun. Doc from sun. "logger like" API to be used by RMI implementation |
log | back to summary |
---|---|
public void log(Level level, String message) Implements abstract sun. |
log | back to summary |
---|---|
public void log(Level level, String message, Throwable thrown) Implements abstract sun. |
setOutputStream | back to summary |
---|---|
public synchronized void setOutputStream(OutputStream out) Implements abstract sun. Set the output stream associated with the RMI server call logger. Calling code needs LoggingPermission "control". |
toString | back to summary |
---|---|
public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
|
Access | Constructor and Description |
---|---|
pack-priv |
Modifier and Type | Method and Description |
---|---|
public Log | createLog(final String loggerName, String oldLogName, final Level level)
Implements sun.
|
LoggerLogFactory | back to summary |
---|---|
pack-priv LoggerLogFactory() |
createLog | back to summary |
---|---|
public Log createLog(final String loggerName, String oldLogName, final Level level) Implements sun. |
Modifier and Type | Field and Description |
---|---|
private final ByteArrayOutputStream | bufOut
stream used for buffering lines |
private int | last
record the last character written to this stream |
private final Logger | logger
logger where output of this log is sent |
Access | Constructor and Description |
---|---|
private |
Modifier and Type | Method and Description |
---|---|
public String | |
public void | write(int
The byte to be written b)Overrides java. Writes the specified byte to this stream. |
public void | write(byte[]
A byte array b, int Offset from which to start taking bytes off, int Number of bytes to write len)Overrides java. Writes |
bufOut | back to summary |
---|---|
private final ByteArrayOutputStream bufOut stream used for buffering lines |
last | back to summary |
---|---|
private int last record the last character written to this stream |
logger | back to summary |
---|---|
private final Logger logger logger where output of this log is sent |
LoggerPrintStream | back to summary |
---|---|
private LoggerPrintStream(Logger logger) |
toString | back to summary |
---|---|
public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
|
write | back to summary |
---|---|
public void write(int b) Overrides java. Doc from java. Writes the specified byte to this stream. If the byte is a newline and
automatic flushing is enabled then the Note that the byte is written as given; to write a character that
will be translated according to the default charset, use the
|
write | back to summary |
---|---|
public void write(byte[] b, int off, int len) Overrides java. Doc from java. Writes Note that the bytes will be written as given; to write characters
that will be translated according to the default charset, use the
|
Modifier and Type | Field and Description |
---|---|
private int | levelValue
the level of the log as set by associated property |
private final LogStream |
Access | Constructor and Description |
---|---|
private | LogStreamLog(LogStream stream, Level level)
References Deprecated
LogStream is deprecated or references (maybe indirectly) at least one deprecated element.
|
Modifier and Type | Method and Description |
---|---|
public PrintStream | |
public synchronized boolean | isLoggable(Level level)
Implements abstract sun. "logger like" API to be used by RMI implementation |
public void | |
public void | |
public synchronized void | setOutputStream(OutputStream out)
Implements abstract sun. get and set the RMI server call output stream |
private static String |
levelValue | back to summary |
---|---|
private int levelValue the level of the log as set by associated property |
stream | back to summary |
---|---|
private final LogStream stream
References Deprecated
See corresponding docs for further information. Log stream to which log messages are written |
LogStreamLog | back to summary |
---|---|
private LogStreamLog(LogStream stream, Level level)
References Deprecated
See corresponding docs for further information. |
getPrintStream | back to summary |
---|---|
public PrintStream getPrintStream() Implements abstract sun. |
isLoggable | back to summary |
---|---|
public synchronized boolean isLoggable(Level level) Implements abstract sun. Doc from sun. "logger like" API to be used by RMI implementation |
log | back to summary |
---|---|
public void log(Level messageLevel, String message) Implements abstract sun. |
log | back to summary |
---|---|
public void log(Level level, String message, Throwable thrown) Implements abstract sun. |
setOutputStream | back to summary |
---|---|
public synchronized void setOutputStream(OutputStream out) Implements abstract sun. Doc from sun. get and set the RMI server call output stream |
unqualifiedName | back to summary |
---|---|
private static String unqualifiedName(String name) |
Access | Constructor and Description |
---|---|
pack-priv |
Modifier and Type | Method and Description |
---|---|
public Log | createLog(String loggerName, String oldLogName, Level level)
Implements sun.
|
LogStreamLogFactory | back to summary |
---|---|
pack-priv LogStreamLogFactory() |
createLog | back to summary |
---|---|
public Log createLog(String loggerName, String oldLogName, Level level) Implements sun. |