|
ePOST API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rice.environment.logging.AbstractLogManager rice.environment.logging.simple.SimpleLogManager
public class SimpleLogManager
This class creates loggers that log to a specified PrintStream System.out by default.
Field Summary |
---|
Fields inherited from class rice.environment.logging.AbstractLogManager |
---|
dateFormat, dateFormatter, enabled, loggers, nullPrintStream, packageOnly, params, prefix, ps, SYSTEM_ERR, SYSTEM_OUT, time |
Constructor Summary | |
---|---|
SimpleLogManager(Parameters params)
Convienience constructor. |
|
SimpleLogManager(java.io.PrintStream stream,
Parameters params)
Convienience constructor. |
|
SimpleLogManager(java.io.PrintStream stream,
TimeSource timeSource,
Parameters params)
Constructor. |
|
SimpleLogManager(java.io.PrintStream stream,
TimeSource timeSource,
Parameters params,
java.lang.String prefix,
java.lang.String dateFormat)
|
|
SimpleLogManager(TimeSource timeSource,
Parameters params)
Convienience constructor. |
Method Summary | |
---|---|
LogManager |
clone(java.lang.String detail)
Return a new LogManager with identical parameters except that there is an indication of detail in each line, or filename if seperated by files. |
protected Logger |
constructLogger(java.lang.String clazz,
int level,
boolean useDefault)
|
Parameters |
getParameters()
|
java.io.PrintStream |
getPrintStream()
|
TimeSource |
getTimeSource()
|
Methods inherited from class rice.environment.logging.AbstractLogManager |
---|
getLogger, getPrefix, parseVal |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface rice.environment.logging.LogManager |
---|
getLogger |
Constructor Detail |
---|
public SimpleLogManager(java.io.PrintStream stream, TimeSource timeSource, Parameters params)
stream
- the stream to write totimeSource
- the timesource to get times fromminPriority
- the minimum priority to printpublic SimpleLogManager(java.io.PrintStream stream, TimeSource timeSource, Parameters params, java.lang.String prefix, java.lang.String dateFormat)
public SimpleLogManager(Parameters params)
minPriority
- the minimum priority to print.public SimpleLogManager(java.io.PrintStream stream, Parameters params)
stream
- the stream to write tominPriority
- the minimum priority to printpublic SimpleLogManager(TimeSource timeSource, Parameters params)
timeSource
- the timesource to get times fromminPriority
- the minimum priority to printMethod Detail |
---|
public java.io.PrintStream getPrintStream()
getPrintStream
in class AbstractLogManager
public Parameters getParameters()
public TimeSource getTimeSource()
getTimeSource
in class AbstractLogManager
protected Logger constructLogger(java.lang.String clazz, int level, boolean useDefault)
constructLogger
in class AbstractLogManager
public LogManager clone(java.lang.String detail)
CloneableLogManager
clone
in interface CloneableLogManager
detail
- usually will be a nodeid
|
ePOST API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |