|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.openptk.logging.AtomicLogger
public class AtomicLogger
| Field Summary | |
|---|---|
protected static java.util.logging.Logger |
_logger
|
| Fields inherited from interface org.openptk.logging.LoggingIF |
|---|
PROP_CLASSNAME, PROP_FILENAME |
| Constructor Summary | |
|---|---|
AtomicLogger(java.lang.String file)
AtomicLogger - Create a new simple logger with a file to be written to. |
|
| Method Summary | |
|---|---|
void |
addConsole()
|
void |
addFile(java.lang.String file)
|
void |
close()
|
void |
finialize()
|
java.lang.String |
getId()
Returns the ID/Name of the logging facility |
void |
log(java.lang.String msg)
Prints the message to logger as an INFO level message. |
void |
logError(java.lang.String msg)
Prints the message to logger as an ERROR level message. |
void |
logInfo(java.lang.String msg)
Prints the message to logger as an INFO level message. |
void |
logWarning(java.lang.String msg)
Prints the message to logger as an WARNING level message. |
void |
put(LoggingLevel type,
java.lang.String msg)
Prints the message to logger using the LoggingLevel type passed. |
void |
put(java.lang.String msg)
Prints the message to standard output using the INFO. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final java.util.logging.Logger _logger
| Constructor Detail |
|---|
public AtomicLogger(java.lang.String file)
file - to write all messages to| Method Detail |
|---|
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 put(LoggingLevel type,
java.lang.String msg)
put in interface LoggingIFtype - msg - public void addConsole()
addConsole 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 logger.public void logError(java.lang.String msg)
logError in interface LoggingIFmsg - String to be printed to logger.public void logInfo(java.lang.String msg)
logInfo in interface LoggingIFmsg - String to be printed to logger.public void logWarning(java.lang.String msg)
logWarning in interface LoggingIFmsg - String to be printed to logger.public void put(java.lang.String msg)
put in interface LoggingIFmsg - String to be printed to logger.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||