|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.openptk.logging.SysoutLogger
public class SysoutLogger
Logger implementation that logs all messages to standard system output.
| Field Summary |
|---|
| Fields inherited from interface org.openptk.logging.LoggingIF |
|---|
PROP_CLASSNAME, PROP_FILENAME |
| Constructor Summary | |
|---|---|
SysoutLogger()
|
|
| Method Summary | |
|---|---|
void |
addConsole()
|
void |
addFile(java.lang.String file)
|
void |
close()
|
void |
finialize()
|
java.lang.String |
getId()
|
void |
log(java.lang.String msg)
Prints the message to standard output as an INFO level message. |
void |
logError(java.lang.String msg)
Prints the message to standard output as an ERROR level message. |
void |
logInfo(java.lang.String msg)
Prints the message to standard output as an INFO level message. |
void |
logWarning(java.lang.String msg)
Prints the message to standard output as an WARNING level message. |
void |
put(LoggingLevel type,
java.lang.String msg)
Prints the message to standard output using the LoggingLevel type passed. |
void |
put(java.lang.String msg)
Prints the message to standard output using the INFO level. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SysoutLogger()
| Method Detail |
|---|
public void addConsole()
addConsole in interface LoggingIF
public void addFile(java.lang.String file)
throws java.lang.Exception
addFile in interface LoggingIFfile -
java.lang.Exceptionpublic void close()
close in interface LoggingIF
public void finialize()
throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String getId()
getId in interface LoggingIFpublic void log(java.lang.String msg)
log in interface LoggingIFmsg - String to be printed to standard output.public void logError(java.lang.String msg)
logError in interface LoggingIFmsg - String to be printed to standard output.public void logInfo(java.lang.String msg)
logInfo in interface LoggingIFmsg - String to be printed to standard output.public void logWarning(java.lang.String msg)
logWarning in interface LoggingIFmsg - String to be printed to standard output.
public void put(LoggingLevel type,
java.lang.String msg)
put in interface LoggingIFtype - LoggingLevel to log the message asmsg - String to be printed to standard output.public void put(java.lang.String msg)
put in interface LoggingIFmsg - String to be printed to standard output.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||