|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.rssowl.util.LoggerImpl
This class writes warning messages into a file
Field Summary | |
private String |
criticalErrorLogPath
Path used for the critical warning log file if needed |
private static 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(String msg,
Throwable t)
Log an info message |
private void |
initFileHandler()
Init the FileHandler to use with the logger |
private void |
log(Level level,
String msg,
Throwable t)
Perform a logging |
void |
log(String msg)
Log warning with no exception |
void |
log(String msg,
Throwable t)
Log warning with a message |
void |
logCritical(String msg,
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 Logger logger
private static final int MAX_LOG_SIZE
private static boolean useFileHandler
private String criticalErrorLogPath
Constructor Detail |
public LoggerImpl()
Method Detail |
public void info(String msg, Throwable t)
msg
- The method where the info did occurt
- The Exceptionpublic void log(String msg)
msg
- The messagepublic void log(String msg, Throwable t)
msg
- The method where the warning did occurt
- The Exceptionpublic void logCritical(String msg, Throwable t)
msg
- The message to logt
- The Exceptionprivate void initFileHandler()
private void log(Level level, String msg, 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 |