|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--irssibot.util.log.FileLog
Logger for file based logging.
| Field Summary | |
private java.io.BufferedOutputStream |
out
Output stream for current log file |
private java.util.Properties |
properties
Init properties |
| Fields inherited from interface irssibot.util.log.CommonLog |
PROPERTY_FILE_PATH_PROPERTY_NAME |
| Constructor Summary | |
FileLog()
Constructs. |
|
| Method Summary | |
java.lang.String |
getPropertyFilePath()
Returns path for property file from which this CommonLog was initialized. |
void |
init(java.util.Properties properties)
Initializes this logger. |
void |
logMessage(java.lang.String message)
Logs a preformatted log message to file, appending a line break character \n. |
void |
stop()
Stops and deinits this logger. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private java.io.BufferedOutputStream out
private java.util.Properties properties
| Constructor Detail |
public FileLog()
| Method Detail |
public java.lang.String getPropertyFilePath()
getPropertyFilePath in interface CommonLog
public void logMessage(java.lang.String message)
throws LogException
\n.
logMessage in interface CommonLogmessage - log message to write
LogException - if there is an error writing to filepublic void init(java.util.Properties properties)
init in interface CommonLogproperties - init properties, or null if none suppliedpublic void stop()
stop in interface CommonLog
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||