|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openptk.logging.SimpleLogger
public class SimpleLogger
Field Summary | |
---|---|
protected static java.util.logging.Logger |
_logger
|
Fields inherited from interface org.openptk.logging.LoggingIF |
---|
PROP_CLASSNAME, PROP_FILENAME |
Constructor Summary | |
---|---|
SimpleLogger(java.lang.String file)
SimpleLogger - 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 SimpleLogger(java.lang.String file)
file
- to write all messages toMethod Detail |
---|
public void addConsole()
addConsole
in interface LoggingIF
public void addFile(java.lang.String file) throws java.lang.Exception
addFile
in interface LoggingIF
file
-
java.lang.Exception
public void close()
close
in interface LoggingIF
public void finialize() throws java.lang.Throwable
java.lang.Throwable
public java.lang.String getId()
getId
in interface LoggingIF
public void log(java.lang.String msg)
log
in interface LoggingIF
msg
- String to be printed to logger.public void logError(java.lang.String msg)
logError
in interface LoggingIF
msg
- String to be printed to logger.public void logInfo(java.lang.String msg)
logInfo
in interface LoggingIF
msg
- String to be printed to logger.public void logWarning(java.lang.String msg)
logWarning
in interface LoggingIF
msg
- String to be printed to logger.public void put(LoggingLevel type, java.lang.String msg)
put
in interface LoggingIF
type
- LoggingLevel to log the message asmsg
- String to be printed to logger.public void put(java.lang.String msg)
put
in interface LoggingIF
msg
- String to be printed to logger.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |