Package com.mckoi.debug
Interface DebugLogger
- All Superinterfaces:
Lvl
- All Known Implementing Classes:
DefaultDebugLogger
An interface for logging errors, warnings, messages, and exceptions in the
Mckoi system. The implementation of where the log is written (to the
console, file, window, etc) is implementation defined.
- Author:
- Tobias Downer
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isInterestedIn
(int level) Queries the current debug level.void
void
This writes the given debugging string.void
void
writeException
(int level, Throwable e) This writes the given Exception but gives it a 'debug_level'.void
This writes the given Exception.
-
Method Details
-
isInterestedIn
boolean isInterestedIn(int level) Queries the current debug level. Returns true if the debug listener is interested in debug information of this given level. This can be used to speed up certain complex debug displaying operations where the debug listener isn't interested in the information be presented. -
write
This writes the given debugging string. It filters out any messages that are below the 'debug_level' variable. The 'object' variable specifies the object that made the call. 'level' must be between 0 and 255. A message of 'level' 255 will always print. -
write
-
write
-
writeException
This writes the given Exception. Exceptions are always output to the log stream. -
writeException
This writes the given Exception but gives it a 'debug_level'. This is so we can write out a warning exception.
-