toolbus.logging
Interface ILogger
- All Known Implementing Classes: 
 - CommandLineLogger, FileLogger
 
public interface ILogger
 
| 
Method Summary | 
 void | 
log(java.lang.String message,
       int loglevel)
 
          Logs the given message (but only if the message is 'important' enough). | 
 void | 
log(java.lang.String message,
       java.lang.Throwable throwable,
       int loglevel)
 
          Logs the given message, including the given stacktrace (but only if the message is
 'important' enough). | 
 void | 
setTimestamp(boolean on)
 
          Toggle timestamp printing in messages | 
 
LOGSTR
static final java.lang.String LOGSTR
- See Also:
 - Constant Field Values
 
FATALSTR
static final java.lang.String FATALSTR
- See Also:
 - Constant Field Values
 
ERRORSTR
static final java.lang.String ERRORSTR
- See Also:
 - Constant Field Values
 
WARNINGSTR
static final java.lang.String WARNINGSTR
- See Also:
 - Constant Field Values
 
INFOSTR
static final java.lang.String INFOSTR
- See Also:
 - Constant Field Values
 
DEBUGSTR
static final java.lang.String DEBUGSTR
- See Also:
 - Constant Field Values
 
UNKNOWNSTR
static final java.lang.String UNKNOWNSTR
- See Also:
 - Constant Field Values
 
OFF
static final int OFF
- See Also:
 - Constant Field Values
 
LOG
static final int LOG
- See Also:
 - Constant Field Values
 
FATAL
static final int FATAL
- See Also:
 - Constant Field Values
 
ERROR
static final int ERROR
- See Also:
 - Constant Field Values
 
WARNING
static final int WARNING
- See Also:
 - Constant Field Values
 
INFO
static final int INFO
- See Also:
 - Constant Field Values
 
DEBUG
static final int DEBUG
- See Also:
 - Constant Field Values
 
ALL
static final int ALL
- See Also:
 - Constant Field Values
 
setTimestamp
void setTimestamp(boolean on)
- Toggle timestamp printing in messages
- Parameters:
 on - Sets timestamp on or off.
 
 
log
void log(java.lang.String message,
         int loglevel)
- Logs the given message (but only if the message is 'important' enough).
- Parameters:
 message - The message that needs to be logged.loglevel - The log level of the message.
 
 
log
void log(java.lang.String message,
         java.lang.Throwable throwable,
         int loglevel)
- Logs the given message, including the given stacktrace (but only if the message is
 'important' enough).
- Parameters:
 message - The message that needs to be logged.throwable - The stacktrace associated with the message.loglevel - The log level of the message.