|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectucar.util.AbstractLogger
ucar.util.RMILogger
public class RMILogger
This is a concrete implementation of the Logger
interface
which retains consistancy and interoperability with the logging
done by java.rmi.server.RemoteServer
If the log level of this is set to a value greater than
Logger.NOTICE
, then rmi server logging is turned on,
directed to the same output stream.
Field Summary |
---|
Fields inherited from interface ucar.util.Logger |
---|
ALERT, CRIT, DEBUG, EMERG, ERR, INFO, NOTICE, WARNING |
Constructor Summary | |
---|---|
RMILogger()
Default construct prints messages of priority up to Logger.NOTICE
on System.err . |
|
RMILogger(int maxLevel,
java.io.OutputStream logStream)
Construct a logger that prints messages of priority up to maxLevel on logStream . |
Method Summary | |
---|---|
void |
log(int level,
java.lang.String message)
Arrange to log the message
at the given level . |
void |
logUpTo(int maxLevel)
Control the verbosity of this Logger. |
void |
setLog(java.io.OutputStream logStream)
Set the OutputStream where log messages will be printed. |
Methods inherited from class ucar.util.AbstractLogger |
---|
logDebug, logError, logInfo, logLogException, logNotice |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface ucar.util.Logger |
---|
logDebug, logError, logInfo, logNotice |
Constructor Detail |
---|
public RMILogger(int maxLevel, java.io.OutputStream logStream)
maxLevel
on logStream
.
public RMILogger()
Logger.NOTICE
on System.err
.
Method Detail |
---|
public void setLog(java.io.OutputStream logStream)
Logger.NOTICE
,
then java.rmi.server.RemoteServer.setLog(logStream)
is called.
RemoteServer.setLog(java.io.OutputStream)
public void logUpTo(int maxLevel)
maxLevel
are discarded.
logUpTo
in interface Logger
public void log(int level, java.lang.String message) throws java.io.IOException
message
at the given level
.
log
in interface Logger
level
- Int value which is one of
EMERG
,
ALERT
,
CRIT
,
ERR
,
WARNING
,
NOTICE
,
INFO
, or
DEBUG
.
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |