|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.rssowl.util.LoggerImpl
public class LoggerImpl
This class writes warning messages into a file
| Field Summary | |
|---|---|
private java.lang.String |
criticalErrorLogPath
Path used for the critical warning log file if needed |
private static java.util.logging.Logger |
logger
Logger for RSSOwl |
private static int |
MAX_LOG_SIZE
Maximum number of bytes before flushing logfile |
private static boolean |
useFileHandler
TRUE: Print errors into file FALSE: Print errors to System.err |
| Constructor Summary | |
|---|---|
LoggerImpl()
Creates a new instance of WiSimLogger |
|
| Method Summary | |
|---|---|
void |
info(java.lang.String msg,
java.lang.Throwable t)
Log an info message |
private void |
initFileHandler()
Init the FileHandler to use with the logger |
private void |
log(java.util.logging.Level level,
java.lang.String msg,
java.lang.Throwable t)
Perform a logging |
void |
log(java.lang.String msg)
Log warning with no exception |
void |
log(java.lang.String msg,
java.lang.Throwable t)
Log warning with a message |
void |
logCritical(java.lang.String msg,
java.lang.Throwable t)
Log critical errors that cause RSSOwl to crash in a seperate, unique file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final java.util.logging.Logger logger
private static final int MAX_LOG_SIZE
private static boolean useFileHandler
private java.lang.String criticalErrorLogPath
| Constructor Detail |
|---|
public LoggerImpl()
| Method Detail |
|---|
public void info(java.lang.String msg,
java.lang.Throwable t)
msg - The method where the info did occurt - The Exceptionpublic void log(java.lang.String msg)
msg - The message
public void log(java.lang.String msg,
java.lang.Throwable t)
msg - The method where the warning did occurt - The Exception
public void logCritical(java.lang.String msg,
java.lang.Throwable t)
msg - The message to logt - The Exceptionprivate void initFileHandler()
private void log(java.util.logging.Level level,
java.lang.String msg,
java.lang.Throwable t)
level - Level of the logmsg - Message of the logt - Exception of the log
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||